microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
909 stars 283 forks source link

HoloLens 2 : Cannot connect to destination host - Bad access #769

Closed alxfigueiredo closed 3 years ago

alxfigueiredo commented 3 years ago

Hello everyone,

I followed this MRTK-Webrtc tutorial from Microsoft: https://microsoft.github.io/MixedReality-WebRTC/manual/unity/helloworld-unity.html

Everything goes well, until the HoloLens 2 tries to connect to the node-dss server. The answer in the console is: "Cannot connect to destination host" or "Curl error 7 ... : bad access" to the IP address of my computer.

I tried to deploy the application on a second computer and it worked. The problem seems to come from the deployment on HoloLens 2.

Can someone help me? I have searched many forums and issues on this git without finding the solution. Many people were talking about firewalls (which I tried to disable but without success).

I'm using Unity 2019.4.26f1 and MRTK-Webrtc 2.0.2

Here is a picture of the development console on HoloLens 2 :

Error_Connexion_MRTK-Webrtc

Thanks a lot !

spacecheeserocks commented 3 years ago

Sounds like a firewall issue of some kind to me too.

Assuming you've already tried some basic troubleshooting, some other things to consider are:

alxfigueiredo commented 3 years ago

Hello, thank you for your answer !

Finally i was able to Deploy WEB-RTC to another Unity project. Having compared the configurations of the two projects, I find no difference. I can't explain why in the first one it doesn't work.

However I suspect that my first project (which does not work) was too far from the root of the C:\ drive and lost some files during compilation. I saw this information on MRTK Documentation :

MAX_PATH_ENG

And when importing MRTK i was maybe loosing some important files. But I Can't confirm that..