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

TCP connection with hololens works only in one way

For a while now I'm trying to send data to hololens but nothing works.

I'm using Windows.Networking and I have an UWP application running on my PC.
I based it on this example:
https://docs.microsoft.com/en-us/windows/uwp/networking/sockets

When I try to communicate between two PCs or when I'm sending a message from hololens it gets recieved normally but any attempt to send it to the hololens was unsuccessful.

I have also tried UDP example from this post with the same results - I can recieve a message from hololens but I can't send it:
https://forums.hololens.com/discussion/7980/udp-communication-solved#latest

I have tried using different ports and disabling firewall. Tried updating and resetting hololens. Updating Visual Studio, Unity and HoloToolkit. I tried creating a new project with only networking script to check if something other in my project wasn't interfering.

So if anyone had a similar could you please share what has or hasn't worked for you?

Tagged:

Answers

  • Options

    hey I have the same problem, I want to send data from MATLAB to hololens but the data couldn't be received. Did you find a solution for your problem?

  • Options

    I've only been able to go from hololens -> pc, and not the other way around. Any updates on this? :(

  • Options
    edited April 2018

    This listener code runs ... but I didn't send anything ...

    Windows.Networking.Sockets.StreamSocketListener listener = new Windows.Networking.Sockets.StreamSocketListener();
    listener.ConnectionReceived += SocketListener_ConnectionReceived;
    await listener.BindServiceNameAsync("1666");

  • Options

    check out this blog, it outlines all the issues I've encountered when trying to set up successful PC-> HoloLens communication.

  • Options

    @cb_emerge thank you, will do. have you tried connecting via udp by any chance, as opposed to tcp..?

  • Options

    ok ive exhausted all options on udp, really bent over backwards trying to make the externaldevice->hololens work the past two days but no dice. just gonna go the tcp route now *sigh

  • Options

    @cb_emerge thanks so much for your link! - really well explained. FINALLY got it working via TCP.. and it works beautifully! couldnt make udp work for the life of me. gbye udp

  • Options

    @mumblefish said:
    @cb_emerge thanks so much for your link! - really well explained. FINALLY got it working via TCP.. and it works beautifully! couldnt make udp work for the life of me. gbye udp

    How did you get it? please i have no idea :(

Sign In or Register to comment.