HoloLens2 and Unity's Socket Communication Diary

Recently, I want Hololens to obtain the updated data in the computer, and I plan to use sockets to communicate. Obviously, the simulation test in unity can communicate normally, but the communication always fails when the software is deployed to HoloLens. I have been looking for the reason for a long time, and finally I can communicate normally. Let me put some pitfalls here for your reference.

1. Turn off the firewall of the Windows private network

2. Codes that do not support synchronous communication on HoloLens

3. Open several network communication options as above

4. In the advanced settings center of Windows Defender, set the inbound rules of the project editor to allow it to communicate on the network, which is a very important pit

If the above aspects are debugged, it should be able to run normally when deployed on HoloLens 

Guess you like

Origin blog.csdn.net/Aaron9489/article/details/131478641