turn server test in LAN

80 views
Skip to first unread message

Participant Tester

unread,
May 12, 2023, 6:44:56 AM5/12/23
to discuss-webrtc
Hi, 
i am failed at testing of turn server in LAN,
the following  ice candidate gathered are fail at connction :

Sending 'candidate' message: {"from":"king@kn10","type":"candidate","target":"mark@19243","candidate":{"candidate":"candidate:3591813404 1 udp 41754367 192.168.1.103 49152 typ relay raddr 0.0.0.0 rport 0 generation 0 ufrag P7Bl network-id 3 network-cost 10","sdpMid":"0","sdpMLineIndex":0}}
p2pvideo_e3.js:645 peerConnectionc ICE connection state: checking
p2pvideo_e3.js:656 Connection state: connecting
p2pvideo_e3.js:669 peer rcv socket msg, type= candidate
p2pvideo_e3.js:847 *** Adding received ICE candidate: {"candidate":"candidate:3347970610 1 udp 41885695 192.168.1.103 49154 typ relay raddr 0.0.0.0 rport 0 generation 0 ufrag nxrr network-id 1","sdpMid":"0","sdpMLineIndex":0}
p2pvideo_e3.js:653 ICE gathering state: complete
p2pvideo_e3.js:645 peerConnectionc ICE connection state: disconnected
p2pvideo_e3.js:648 Connection has been closed stopping...
p2pvideo_e3.js:656 Connection state: failed

my ice configuration is as following:

 const iceTurnConfig={
        iceServers: [
            {
                urls: ['turn:192.168.1.103:3478?transport=udp'],
                username: 'guest',
                credential: 'somepassword',
                credentialType: 'password'
            },

        ],
      iceTransportPolicy: 'relay',
      bundlePolicy: 'max-bundle',
      rtcpMuxPolicy: 'require',
      iceCandidatePoolSize: '0',
      sdpSemantics: 'unified-plan',
      tcpCandidatePolicy: 'disable',
      // IceTransportsType: 'nohost',
      IceTransportsType: 'relay',
    };
  peerConnection = window.peerConnection =
   new RTCPeerConnection(iceTurnConfig);

should anyone help? thanks .


Reply all
Reply to author
Forward
0 new messages