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

OnReceivedBroadcast doesn't supply port number

$
0
0
NetworkDiscovery.OnReceivedBroadcast(string fromAddress,string data) supplies the fromAddress string in the format ::ffff:192.168.0.50 for example.

Initially I thought the ffff part might be the port number as a hex string, however regardless of which port I start my host on before I start broadcast, it is always ffff.

Therefore the only useful information I can get from then fromAddress string is the IP address.

Currently I'm passing the port number in the data...

OnReceivedBroadcast doesn't supply port number

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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