Some Android devices cannot receive NetworkDiscovery broadcasts

Hi,

I’m using the NetworkDiscovery component and it has worked for the most part. I’m having some trouble with a couple Android devices not receiving broadcasts from other Android and Desktop devices that are running as servers.
However, when the couple Android devices run as a server, clients can receive their broadcasts.

Is there anything I need to enable on the Android devices to receive broadcasts?

Same. The issue appears to be that NetworkDiscovery returns an ip6 address rather than an ip4, and androids ignore attempts to connect to them using ip6. It finds the broadcast server (in my case at ::ffff:192.168.1.8) and then attempts to connect the game using that IP, when it needs to connect using just 192.168.168.6 without the ::fff:.

I’m going to search some more to see there is a setting somewhere, but it seems not - and I likely will have to get that address from the dictionary, strip the ip6 prefix and connect manually.

EDIT: Looks like the hybrid IP wasn’t the issue, it just looked like it due to other issues with local networks and the quirky nature of using the development environment player as a server or client rather than builds.

@emotitron did you find anything useful on this issue? I’m having no broadcasts with NetWorkDiscovery using a PC server and a Hololens client.

Like many things Unet related, it resolved itself inexplicably after moving to other networks and back. The IP6/IP4 hybrid addresses are resolving just fine on home networks. Can’t speak to your particular implementation with the Hololens.

Are you able to connect the two by typing in IP addresses by hand?

Actually I did find the solution. Hololens, like most mobile devices in one way or another, requires that UWP (Universal Windows Platform) apps declare their capabilities (Internet access, Webcam access, etc.) in a manifest file. I had “InternetClientServer” capability but that one is intended for Internet only without local network access. I specified “PrivateNetworkClientServer” too for local network access and it now works.

Here is all capabilities for UWP apps if anyone is interested.

1 Like