I am writing an application for Hololens which communicates with a unity server on PC. The application worked and it transmitted data successfully back and forth. Of course, my router decided to die 3 weeks before the deadline, and now with the new router, the client on Hololens does not connect to the server anymore. The new router is a NetGear R6220.
This is the log I’m getting:
Calling NetworkManager.singleton.StartClient()
'HoloNetworkingTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HoloNetworkingTestVS.Debug_x86.*-*\System.Text.Encoding.Extensions.dll'. Module was built without symbols.
'HoloNetworkingTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HoloNetworkingTestVS.Debug_x86.*-*\Microsoft.Win32.Primitives.dll'. Cannot find or open the PDB file.
Log: cannot connect after 10 attempt address {::ffff:192.168.2.2:7777}
I tried everything I could think of. I mapped the DHCP server to the same range of the old router so the PC has the same IP as before. I tried setting up port forwarding for 7777 to the PC’s IP (although port forwarding shouldn’t be needed). I opened port 7777 on the firewall for both TCP and UDP. I tried connecting to both 2.4G and 5G wifi. Nothing worked…
I tried to figure out what the error was by overriding OnFailedToConnect, but apparently the NetworkConnectionError enum is not available for Windows Store so it does not compile to Hololens.
Any help would be appreciated at this point. Thank you.