HoloLens 2 cannot find any sessions on LAN - unreal-engine4

Project
I am currently working on a project which should allow users on the LAN to host sessions from an Android device and join them from the HoloLens 2. I have tried creating the same project in Unreal Engine 4.2.7 and 5.0.3.
Issues
I can create sessions from the Android device and they can be found from the PC and other Android devices on the same network, however the HoloLens 2 does not seem to find any sessions on the LAN. I am attaching the blueprint screenshot where I create the session.
Create session
I have a content browser which would then display all the different sessions hosted on the LAN.
Find and show sessions
In the image below you can see that I am able to find sessions from the PC but when I run the application on the HoloLens 2, it does not find any sessions on the LAN.
Find sessions menu

Related

Is there a internet permission command to be added in the Windows Folder of the Flutter Application for internet usage?

I am developing a simple flutter application for my manufacturing facility, where we want to input the stock ids of the raw materials which were used to develop the product. I made a simple Flutter Application with Windows and macOS and Android & IOS enabled while initiating the project in Android Studio. I am using Mysql1 dependency from pub dev to avoid writing large amounts of backend and use other frameworks.
Furthermore, I also added internet permission for the app in the Androids folder. However, when I was trying to do it on the windows app, the MySQL query would not go through. The MySql server is hosted on Digital Ocean. I entered the exact details,
But works on the android phone and not on windows applications. Do we need to add any same permission line in the Windows Folder?
I installed the application on my physical, it is perfectly sending the data to the MySQL table in the DigitalOcean server. However, doesn't seem to do the same in the windows application. I want it to run the query the same as in the windows desktop app as in the android app.
Any help would be appreciated,
Thanks and Regards.

Remote Machine IP disappears when entering Play Mode (Unity/Hololens)

I'm working with an XR Unity project (2019.4.26f1) and I'm trying to deploy it on the HoloLens 2. I've managed to build the project and to run it in the HL from Visual Studio by cable but I need to be able to see the app in the HL when I enter on the Play Mode in Unity.
I've followed some tutorials like this one and I can do every step but when I get to the step of writing the IP in the Windows Mixed Reality window, a problem appears. When I hit play to go on Play mode, the IP disappears, and I receive an error because the Remote Machine Address is not set. Why is this happening?
I have something like this, with the IP of the HoloLens in the field, the HL are ON and with the HoloRemoting app running. I can access this IP by browser and see that the status is "Connected" and see Live footage of the Lens camera.
However, when I hit "Play", the IP disappears and I get this error.
Atempting to initiate remoting connection with no valid machine name
set. UnityEditor.EditorApplication:Internal_PlayModeStateChanged
(UnityEditor.PlayModeStateChange)
Due to potential compatibility issues, it is highly recommended to upgrade your Unity version to 2020.3.31f1 with the latest Mixed Reality OpenXR plugin. You may refer to the document on Choosing a Unity version and XR plugin - Mixed Reality | Microsoft Docs.

Holographic Remoting (Hololens 2) connection problem in both Unity and Unreal : TransportConnectionFailed

I'm new in hololens 2 developing and trying to use Holographic Remoting.
Unity 2019 LTS
MRTK 2.5.3
Unreal 4.26
Hololens 2
Win 10
VS 2019
In Unity : I follow a popular tutorial,
On HoloLens, go to the Microsoft Store and install the Holographic Remoting Player application.
On HoloLens, start the Holographic Remoting Player application.
In Unity, click the "Windows" menu and select "XR->Holographic Emulation".
Set the simulation mode to the remote device.
For remote computers, please enter the IP address of HOLOLENS.
Click "Connect". You should see the connection status change to "Connected", and you should see the screen appear blank in HoloLens.
Click the "Play" button to start the play mode and experience the application on HoloLens.
What I met:
Setting in Unity
Setting in Unity
When I start to "Connect", Error there:
Disconnected with error TransportConnectionFailed
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
In Unreal I follow: https://docs.unrealengine.com/zh-CN/SharingAndReleasing/XRDevelopment/AR/HoloLens/QuickStartStreaming/index.html
https://learn.microsoft.com/zh-cn/windows/mixed-reality/develop/unreal/tutorials/unreal-uxt-ch6
Setting in Unreal
Setting in Unreal
Similiar error:
LogTemp: Editor connecting to remote HoloLens2: 192.168.19.57
LogWmrHmd: WMRInterop: ConnectToRemoteHoloLens trying to connect to HoloLens2 192.168.19.57
LogWmrHmd: WMRInterop: RemotingDisconnectedEvent: Reason: 12 TransportConnectionFailed
LogHoloLensAR: Warning: HoloLens AR session disconnected from peer
I can connect the device in device portal, and in the Unreal device manager I can also connect my hololens.
device portal
Unreal device manager
Anyone meet this problem?
Could you check that is there any network management software (such as anti-virus software, Firewall, VPN, etc.) is running on your PC? Because we have solved same problems of another customer, and the reason is that he installed VPN software on the PC, which caused UDP port to be blocked. If you still see the same behavior after shutting down the network management software, please open a support ticket through this link: http://aka.ms/hololenssupport
I still didn't find a solution with this configuration (thank you Hernando, but it's not a VPN problem).
However, after I used :
unity2019LTS-XRSDK-MRTK2.4.0-DefaultXRSDKConfigurationProfile
All the things work well (whether VPN is on or not).

"Error DEP6957 Failed to connect to device using Universal Authentication" when deploying Unity app to Hololens emulator

I've been working in a Unity app with Hololens emulator in Visual Studio 2017 in Windows Pro, and it was working great until last night where I started to get the following issue every time that I try to deploy my application into the Hololens emulator:
Error DEP6957 : Failed to connect to device '[device_ip]' using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings.
I've tried to do the following things without success:
Clean/rebuild solution
Checked 'uninstall/install' checkbox in the UWP project settings
Deleted Hololens virtual machine
Uncheck/check Hyper-v feature (and restart PC after each try)
Restarted computer
No luck. Sometimes, I am able to make it work, but after 30 seconds to 1 minute, the hololens emulator gets frozen and then it closes itself; again, this was working fine until last night, and I have not installed anything different, unless an automatic windows update did something. This happens with all the applications, and they run just fine in the Unity player.
I would appreciate your help on this, I just don't think the only solution is to uninstall/install Visual studio and all its components, it makes no sense, since everything was ok.
Thank you.
UPDATE
I've just noticed that if I connect the laptop to the internet by using an ethernet cable, it works, it only fails in WIFI, have you seen that before? I also have another UWP that I deploy remotely to a raspberry and it also works only with ethernet, but both of them were used to work in wifi? any idea?

VS 2017 RC - No Internet in Hyper-V Android Emulator

I am having a strange problem in VS 2017 RC, I know it's still quite buggy but maybe someone here can shed some light on my problem.
I have configured 2 devices in VS Emulators, one is for "Windows 10 Phone 14393.0" which runs fine and I have internet access but the other one for Android doesn't have internet access. The only settings I found different (apart from processor and RAM and such) were the network adapters.
Windows Phone emulator uses two network adapters, one is for data transfer which is used internally in both of the emulators and is common for them but the other one is a NAT switch which I believe is used for internet access.
The problem is Android emulator only creates the first adapter for data pass-through and doesn't create the 2nd one for internet. Now I am able to create 2nd adapter and save the settings but as soon as I try to deploy any app it asks me to configure the network settings on emulator and I have to choose yes or it doesn't start the emulator. Now if I choose yes it replaces the configuration and removes the 2nd adapter and I guess that is why I am not able to access internet.
So can someone help me on this so it doesn't replace settings and let me use the emulator with modified settings?
Thanks.