Mirror Networking - Network Discovery not working on LAN
Hi, I've an issue with the Network Discovery of Mirror Networking: it works perfectly fine when I'm running two editors on the same host, however when I try running two editors on two different computers it does not work.
Both computers are running using Windows. So far I tried:
Using a router as a WiFi access point
Using an Android phone as a WiFi access point
Totally disabling the firewall on both computers
So far it didn't work.
What can I do to find the source of the issue?
Answer by unity_XFZjHF3w7FZsJg · Dec 10, 2020 at 02:38 AM
@Fitzy45 Um, hi. I'm having the same problem. I went into my network discovery script and there isn't any ip address stuff in there. or ANYWHERE. Could you paste your networkdiscovery here so that I can compare it with mine to see if it imported correctly?
Answer by Fitzy45 · Nov 06, 2020 at 08:10 PM
I've found the issue: MirrorNetworking broadcasts using 255.255.255.255, I had to edit the source code of NetworkDiscovery to change the broadcast IP address. Once I've set it to 192.168.0.255 it worked.
Answer by PureLoveWarrior · Jul 13, 2021 at 10:20 AM
@unity_XFZjHF3w7FZsJg NetworkDiscoveryBase.cs->BroadcastDiscoveryRequest()->IPAddress.Broadcast,@unity_XFZjHF3w7FZsJg NetworkDiscoveryBase.cs->BroadcastDiscoveryRequest()->IPAddress.Broadcast