Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

NetworkDiscovery always broadcasts "localhost" - why?

$
0
0
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?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>