Holographic Emulation can't connect to Hololens
I'm having trouble connecting to a HoloLens using Holographic Emulation. I enter the IP address shown on the device and I get this error:
Disconnected with failure reason Unreachable, attempting to reconnect. UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
When I ping the HoloLens IP address it times out. The Microsoft HoloLens app on the same PC connects and works fine. It displays the HoloLens IP address as the one its using.
I'm not sure if the problem is related to Unity or Windows. I tried turning the firewall off in Windows but didn't help. This is my first time setting this up and am stuck.
Visual Studio connects to the HoloLens IP address and is able to send the build to the device.
Answer by aruser · Jun 04, 2017 at 10:10 AM
Okay it started working. I'm not sure exactly what fixed it.
I had an unrelated device issue and Microsoft suggested using the Windows Device Recovery Tool Installer to restore HoloLens to default software. After that I configured the HoloLens settings for development as normal. Once setup I tried connecting Unity to HoloLens using the Holographic Emulation/Remote to Device. It connected and everything works now.
Answer by CarlosPlaza · Nov 09, 2017 at 11:19 AM
Which Unity version are you using? I'm getting the same message on Remote to Device mode in all versions of Unity I've tried...
Disconnected with failure reason Unreachable, attempting to reconnect.
Answer by Igris · Jan 10, 2018 at 05:41 PM
There is a solution here that worked for me.
Basically, this happens when you have more than one version of Unity installed. The only way around it that worked for me was uninstalling all Unity versions except the one I plan to use. The linked post suggests you uninstall all Unity versions and reinstall the one you will use, but I found this extra step unnecessary.
Some people also suggest creating a Firewall exception.
Finally, make sure you don't frequently connect and disconnect, as this will cause Unity to crash, in particular if you disconnect immediately after you stop the game.
Answer by potioc18 · Jun 09, 2020 at 08:54 PM
I was also not able to connect with hololens from unity after following all required steps. Restarting the hololens device solved my issue.