Openvidu with ip camera getting disconnected

Hey folks,
Im using spring boot 2+ with angular 8 to stream ip camera on application.
I have openvidu-server-kms 2.13 ruining on linux machine that is in my network on a docker.
Im getting disconnecting error before video is available.

p.s. On local machine everything is working fine

why is disconnecting? What could be the problem?

IceConnectionState of RTCPeerConnection ac22d7fe-1c47-4a01-a46f-f5c8a5a89b80 (str_IPC_L1GU_ipc_IPCAM_rtsp_DJZL_170_93_143_139_rtplive_470011e600ef003a004ee33696235daa) change to “checking”
‘Subscriber’ (str_IPC_L1GU_ipc_IPCAM_rtsp_DJZL_170_93_143_139_rtplive_470011e600ef003a004ee33696235daa) successfully subscribed
Peer remote stream MediaStream {id: “823ca678-9d27-4778-93b5-26564e64e3ac”, active: true, onaddtrack: null, onremovetrack: null, onactive: null, …}
Video srcObject [[object MediaStream]] updated in stream [str_IPC_L1GU_ipc_IPCAM_rtsp_DJZL_170_93_143_139_rtplive_470011e600ef003a004ee33696235daa]
WebRtc stats not enabled
Subscribed correctly to ipc_IPCAM_rtsp_DJZL_170_93_143_139_rtplive_470011e600ef003a004ee33696235daa
IceConnectionState of RTCPeerConnection 016ea05c-01ca-4e34-9b4d-b7ce4e363534 (str_IPC_FCwm_ipc_IPCAM_rtsp_W4LB_170_93_143_139_rtplive_470011e600ef003a004ee33696235daa) change to “disconnected”. Possible network disconnection
pc.oniceconnectionstatechange
IceConnectionState of RTCPeerConnection ac22d7fe-1c47-4a01-a46f-f5c8a5a89b80 (str_IPC_L1GU_ipc_IPCAM_rtsp_DJZL_170_93_143_139_rtplive_470011e600ef003a004ee33696235daa) change to “disconnected”. Possible network disconnection
pc.oniceconnectionstatechange
New video element associated to e {videos: Array(1), lazyLaunchVideoElementCreatedEvent: false, ee: l, stream: t, remote: true, …}

Maybe you have a connection problem between the new machine and rtsp URL?

Can you test it with other software?

Yes i have connected to the URL

telnet 170.93.143.139 554
Trying 170.93.143.139…
Connected to 170.93.143.139.

this is the kurento stdout:
2020-05-08 08:10:27,435 DEBG ‘kms’ stdout output:
0:04:05.392494246 11 0x7f12b0001840 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“16a5ac85-d90b-4be9-9768-6283e4e973c3_kurento.MediaPipeline/4ab118a8-3cbc-47ec-adf9-dd5d6bf93a83_kurento.WebRtcEndpoint”,“state”:“FAILED”,“streamId”:1,“tags”:[],“timestamp”:“1588925427”,“timestampMillis”:“1588925427435”,“type”:“IceComponentStateChange”},“object”:“16a5ac85-d90b-4be9-9768-6283e4e973c3_kurento.MediaPipeline/4ab118a8-3cbc-47ec-adf9-dd5d6bf93a83_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: db642e0b-4446-415b-bd93-86cdae904643

It seems a problem connecting browser to OpenVidu.

How have you deployed OpenVidu? Have you followed these instructions?

https://docs.openvidu.io/en/2.13.0/

Im using the dev docker version. Do i need to install separated kms, openvidu and turn server since it is private network?

It seems so.

Try deploying OpenVidu for production to see if it works.