WebRTC WebSocket Not Working Through Cloud Proxy - HTTP Endpoints Work Fine
CompletedHello,
I'm trying to establish a WebRTC connection to my NX camera through the cloud proxy, but all WebSocket connection attempts are failing with error 1006.
**My Setup:**
- NX Server: DESARROLLOv6 (confirmed connected to NX Cloud)
- System ID: `05256d46-6fb9-4a64-a830-67b60abb2d23`
- Camera ID: `c351aea1-2a23-d7e9-ff69-68883ca2183f`
- Local server credentials: `USER:PASSWORD` (working fine for local access)
- NX Cloud: **CONNECTED** (verified in System Administration)
**What Works:**
✅ HTTP requests to cloud proxy work perfectly: `https://05256d46-6fb9-4a64-a830-67b60abb2d23.relay.vmsproxy.com/rest/v2/servers/this/info` returns server info successfully
**What Doesn't Work:**
❌ All WebSocket connections to WebRTC endpoint fail immediately with error 1006:
wss://05256d46-6fb9-4a64-a830-67b60abb2d23.relay.vmsproxy.com/rest/v3/devices/c351aea1-2a23-d7e9-ff69-68883ca2183f/webrtc
I've tried:
- With and without authentication in the URL
- Both `wss://` and `ws://` protocols
- Sending credentials in the WebSocket message payload
- Different authentication formats (username/password, credentials object, auth header)
**Questions:**
1. **Is WebRTC WebSocket streaming supported through the NX Cloud Proxy?** Or is it only available for direct server connections?
2. If supported, what is the correct WebSocket URL format and authentication method for WebRTC through cloud proxy?
3. Are there any special permissions, settings, or NX server version requirements to enable WebRTC through cloud proxy?
4. Should I use a different streaming method (HLS, RTSP, or the `/media` HTTP endpoint) through cloud proxy instead of WebRTC WebSocket?
The fact that HTTP endpoints work but WebSocket endpoints don't suggests the cloud proxy might not support WebSocket connections for WebRTC, or there's a specific configuration I'm missing.
Any guidance would be greatly appreciated!
**Technical Details:**
- Browser: Chrome (latest)
- Connection: From external network (not LAN)
- Goal: Stream camera feed on a web page for users outside the LAN
I've been testing and it looks like streaming through Cloud Proxy needs to be enabled - this probably requires additional configuration or special permissions that only NX support can help me enable because I want to use REST v3 WebRTC via relay/proxy.
Thank you!
-
Hi,
Please refer to the post (I think the requestor is you as well)
Thanks.
0
Post is closed for comments.
Comments
1 comment