I’m trying to get Network Discovery to work and my client is not receiving the message, which leads me to believe the server is not broadcasting. I’m using the HoloLens UNET example, and discovery plain does not work.
I have a feeling it might be my LAN configuration somehow–right now I can’t get it to work from HoloLens to HoloLens or from HoloLens to Editor. Are there any LAN configuration options I should look at that might prevent Network Discovery to work? I’ve tried a few different ports to no avail.
The app is clearly in broadcasting mode, as the network GUI confirms it.
Does anyone have any clues on how to use Wireshark (like how to filter everything) to figure out if the broadcast is happening, but the client is just not getting it?
As an update, I managed to check wireshark and it appears that when I start the server it does broadcast. But if I start it in client mode, I don’t see any UDP activity on port 7777–so I guess the Client isn’t looking for servers?
The client seems to be running because I see these (hilariously misspelled) status messages in the console:
NetwrokDiscovery set broadbast data to:NetworkManager:localhost:7777
UnityEngine.Networking.NetworkDiscovery:Initialize()
MyNetworkDiscoveryWithAnchors:Start() (at Assets/Scripts/Networking/MyNetworkDiscoveryWithAnchors.cs:61)
Im using networkDiscovery on hololens as client and a android device as server which works without issues. One thing to make sure on hololens is to ensure the proper capabilities are selected under player settings [internetClient,internetClientServer, PrivateNetworkClientServer].
Aha! If I use a mobile hotspot and connect to that, it works. There’s something about my Router’s LAN that is preventing Network Discovery from working. Are there any router settings I should be aware of that would prevent UDP Broadcast from working? I guess specifically, from clients receiving the UDP broadcasts.
@quitebuttery@sohailthebeast I can’t even compile to hololens. It says NetworkPlayer is missing assembly. Can you share your code or hint at what might be wrong?
I can see messages on the network and it works fine in editor.
I’m too looking to use an android as server and hololens as clients. Thanks.