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.
Options

Hololens C++ TCP server not working.. Firewall?

mlfarrellmlfarrell
edited December 2016 in Questions And Answers

As usual, please no unity-c# responses. I'm not using those, I'm lower-level C++ on top of winsock.

Is the hololens using some sort of LAN firewall? I'm using tested and working code to host a TCP server, but cannot connect at all to the hololens IP address over the lan. Tried both the emulator and device to no avail? Help? are some ports blocked or something?

Answers

  • Options
    mlfarrellmlfarrell
    edited December 2016

    https://forums.hololens.com/discussion/3141/firewall-on-hololens

    Firewall confirmed. This is infuriating. I can't connect at all even over the 9000 port range. MS, please fix this. Our own devices shouldn't be locked down to incomming network connections over our own LANs. This is going to kill one of my apps most useful features!

    I didn't pay $3000 to have a network-locked machine.

  • Options
    Jimbohalo10Jimbohalo10 ✭✭✭
    edited December 2016

    I looked into this in the days of the localhost(127.0.01) problem, by looking in the emulator Hyper-V code I found that the all the code is indeed there, but the Windows 10 Phone startup code is used, to make HoloLens run lightweight version of Windows 10.

    This is similar to the way Windows 10 Internet of Things runs  Raspberry Pi 3 version of Windows 10
    That's got Firewall exception codes installed but not enabled.

    Microsoft Azure has many of the same problems with sketchy code on changing ip networks

    IMHO testing TCP on Windows Lumina 635 Phone is the easiest way of testing networking as this is where I found the  localhost(127.0.01) problem.

    Visual Studio has a tick box, to supposedly make this work NO, makes no difference.

  • Options
    edited December 2016

    Well here's a thought, the remoting sample uses port 8000. So if you use port 8000 tell us if that helps you.

    The remoting sample opens port 8000 to send commands to the Holographic Remoting HoloLens application from a desktop.

    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

  • Options
    utekaiutekai ✭✭✭
    edited December 2016

    I found some of the APIs where not available. So that is the lightweight version being discussed above.

    But I suspect the real issue is more along the lines of power consumption of hosting a tcp socket server. And thus the decision was made to simply not allow it.

    Try the datagram approach.

  • Options

    At this point, I had to cancel the feature. I'll try port 8000, but at this point, I'm just gonna have to move on with my already behind schedule project and rely on other more combersome cloud-based solutions for sending data to my app.

  • Options

    Currently you need to enable the following capabilities in Package.appxmanifest:
    Private networks (Client and Server)
    Internet (Client and Server)
    Internet (Client)

    Now, the application should be able to connect to an any specified port.

Sign In or Register to comment.