Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

Is it possible to communicate (UDP/TCP) with the emulator?

I'm trying to establish a UDP communication with the hololens emulator and I cannot make it work? Is it possible? I tried all the tricks I could find to establish a network link with a hyper-V but to no avail.

Best Answer

Answers

  • internally my research has shown Visual Studio uses TCP/SSH to communicate. you can try this to see if you have any luck.

    Dwight Goins
    CAO & Founder| Independent Architect | Trainer and Consultant | Sr. Enterprise Architect
    MVP | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer
    http://dgoins.wordpress.com

  • where can i find it?

  • If you launch procex and procmon from sysinternal you can see all the communication that happens between VS.Net and the Hololens emu.

    Dwight Goins
    CAO & Founder| Independent Architect | Trainer and Consultant | Sr. Enterprise Architect
    MVP | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer
    http://dgoins.wordpress.com

  • In case that you communicate a 4.5 framework desktop udp program with Hololens ( for mirroring what's happening on this program on HOlolens) which classes would you use for both programs ( desktop program and universal app?)

  • Hey MarcDub,
    trying to send Data via UDP from Unity (of another Project) to my HoloLens Emulator. But I´m not able to figure it out.

    I followed all the steps. When created the new Switch I went to the configs of the Emulator in the Hyper-V Manager. There I delete the 2 previous Switches, and added the new one. It still doesn´t work. Did I miss something?

  • Delete the two switches only if you messed up the configuration. For me, after deleting the two switches, both switches were back properly configured after restarting the emulator.

    You should have two switches. I would recommend to not delete them. You definitely need the Windows Phone Emulator one for communication with VS.

    You can directly use the other switch (Microsoft Emulator NAT) for UDP or TCP communication. You simply use the IP address 192.168.80.1 for your host and 192.168.80.2 for the emulator.

    If you want, you can create a switch and replace only the Microsoft Emulator NAT one (I would replace, not delete) if you want to connect to an actual network. For me, when I create the new switch, I select "External Network" and use my wifi adapter. I can then communicate between the Host and the emulator using the bridged wifi adapter for the emulator and my wired-adapter on my computer (obviously, the wifi and the wired adapters must be on the same network).

    Hope it helps.

Sign In or Register to comment.