Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

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

  • 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?

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

  • 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");

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

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

  • 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

  • @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

  • @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.