Hello there,
I have a project on the Oculus Quest 2. Essentially, I need to be able to see what the person using the Quest is seeing on another Windows application.
To achieve this, I connected my Quest 2 to this Windows application using Unity Render Streaming for the video, and Node.js for everything else. Node.js works fine, but Unity Render Streaming keeps throwing errors.
It works in the editor, but not in builds.
Here is the error message:
Signaling: HTTP request error. url:http://192.168.1.182/signaling?fromtime=1722603235614 exception:System.Net.WebException: Error: ConnectFailure (mono-io-layer-error (111)) —> System.Net.Sockets.SocketException: mono-io-layer-error (111)
08-02 14:57:41.314 23049 23344 E Unity : at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] in <00000000000000000000000000000000>:0
08-02 14:57:41.314 23049 23344 E Unity : at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func
2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task
1[TResult] promise, System.Boolean requiresSynchronization) [0x00000] in <00000000000000000000000000000000>:0
08-02 14:57:41.314 23049 23344 E Unity : at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
08-02 14:57:41.314 23049 23344 E Unity : — End of stack trace from previous location where exception was thrown —
08-02 14:57:41.314 23049 23344 E Unity :
08-02 14:57:41.314 23049 23344 E Unity : at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00000] in <000000000000000000000000
I’ve tried the following:
- Ensuring all options are correctly set in the editor (I set the “Internet Access” property to “Require”, the “Allow downloads over HTTP” property to “Always Allowed”, and verified that the “Force Remove Internet Permission” property was not true in my Oculus settings).
- Creating a custom manifest and adding these options:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- Adding the property
android:usesCleartextTraffic="true"
in the Application tag.
- Changing IL2CPP to Mono, but it didn’t work since OpenXR requires IL2CPP.
Does anyone have an idea what could be causing this error? Any help would be greatly appreciated, as I am currently very stuck.
Thank you very much.