lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

NetUtility.GetMyAddress(out mask) isn't woring #68

Open NarsuAltan opened 8 years ago

NarsuAltan commented 8 years ago

I've followed your instrucions and done a test on unity5.3.3f1. But the method NetUtility.GetMyAddress(out mask) returned null.

AgentFire commented 8 years ago

Sometimes that happens if you don't have any network card and using WiFi only. Although that must be taken care of anyway.

fversnel commented 8 years ago

I've experienced this as well. Ended up using this instead:

UnityEngine.Network.player.ipAddress