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

Holotoolkit SharingWithUNET example: Network discovery does not work. OnReceivedBroadcast not called

I was running the SharingWithUNET on two Hololens . What i notice is that both my devices end up becoming the server with different anchors. One of them should become host and the other as client.
It seems that the NetworkDiscoveryWithAnchors.cs script is not working as expected.
OnReceivedBroadcast method is not getting called. It can be either of the two problems: The device that has been started as Host is not broadcasting or the device that was supposed to be the client has not been able to receive broadcast.
I can't figure out how to correct these problems. Kindly help.
Also note:

  • There is no update method in NetworkDiscoveryWithAnchors.cs class that derives from networkdiscovery . So this cause is ruled out.

Best Answer

  • Options
    VratiVrati
    edited May 2017 Answer ✓

    Found a solution: Turns out that when i make my laptop as mobile hotspot and my two Hololens devices connect to this hot spot ,then it works.
    But if both the Hololens are on public ip on same wifi, then the network discovery does not work.

Answers

  • Options
    VratiVrati
    edited May 2017 Answer ✓

    Found a solution: Turns out that when i make my laptop as mobile hotspot and my two Hololens devices connect to this hot spot ,then it works.
    But if both the Hololens are on public ip on same wifi, then the network discovery does not work.

  • Options

    I can't even compile using UNET. Says I'm missing assembly for NetworkPlayer which is part of NetworkDiscovery UNET class?

  • Options

    Tried the example now and it compiles but of course it doesn't work. Such a great device.

  • Options

    For those still struggling with NetworkDiscovery on the HoloLens, make sure you've enabled the Internet (Client & Server) capability either in Player Settings -> Publishing Settings or the Visual Studio project's manifest file.

Sign In or Register to comment.