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.

Client-Server Socket Connection between HoloLens and PC?

FraDepaFraDepa
edited December 2018 in Questions And Answers

I am trying to develop two different applications that can exchange data using sockets. The PC is the Server, whereas the HoloLens is the Client. I have been able to develop them using Unity3D for both applications and the LiteNetLib library.(https://github.com/RevenantX/LiteNetLib). Now I would like to achieve the same result without using the LiteNetLib library. I tried with System.Net.Sockets (https://docs.microsoft.com/it-it/dotnet/framework/network-programming/asynchronous-client-socket-example) but it does not compile. Did anyone try to make socket connections using c# libraries? Moreover, did anyone try to make a socket connection between a HoloLens Client and a Java Server?
Thank you in advance :)

Tagged:

Answers

  • It's a little old now but I wrote a simple example of communication between a desktop (i.e. 2D XAML UI) app and a HoloLens app (i.e. 3D Unity UI) here on my site a while ago.

    If I remember right, this tries to take an "automatic" approach to connecting the socket client to the socket server by advertising the details of the server over bluetooth so that the client can just 'magically' find it. If you don't want those pieces (or any other pieces) you should be able to just remove them. This code looks to be using Windows.Networking.Sockets to function.

    I hope that helps :smile:

Sign In or Register to comment.