Hi there,
I wasn't able to get NetworkDiscovery working between two separate devices, but it worked on the same machine. After some digging I realized the broadcast data always contains "localhost" as the address for some reason.
To fix it, I had to change the given sample of OnReceivedBroadcast to this. The change is using the "fromAddress" parameter instead of the data in the broadcast.
Why does the broadcast data always contain localhost instead of the actual network address?...
NetworkDiscovery always broadcasts "localhost" - why?
I wasn't able to get NetworkDiscovery working between two separate devices, but it worked on the same machine. After some digging I realized the broadcast data always contains "localhost" as the address for some reason.
To fix it, I had to change the given sample of OnReceivedBroadcast to this. The change is using the "fromAddress" parameter instead of the data in the broadcast.
Why does the broadcast data always contain localhost instead of the actual network address?...
NetworkDiscovery always broadcasts "localhost" - why?