rawrtc-terminal-demo icon indicating copy to clipboard operation
rawrtc-terminal-demo copied to clipboard

test case fail in firefox, but pass in Chrome.

Open lxlenovostar opened this issue 7 years ago • 4 comments

I test rawrtc-terminal-demo. js on Windows7, and rawrtc-terminal run in Ubuntu(in virtualbox) on the same PC. Test case fail in firefox, but pass in Chrome.

The Local Parameters in firefox: {"iceParameters":{"usernameFragment":"08272e3e","password":"94e05df97ef1c90ff5a4a610777a1fa4","iceLite":false},"iceCandidates":[{"foundation":"0","component":"1","protocol":"udp","priority":2122252543,"ip":"192.168.1.111","port":58084,"type":"host"},{"foundation":"2","component":"1","protocol":"udp","priority":2122187007,"ip":"fe80::ffff:ffff:fffe","port":58083,"type":"host"},{"foundation":"4","component":"1","protocol":"tcp","priority":2105524479,"ip":"192.168.1.111","port":9,"type":"host","tcpType":"active"},{"foundation":"5","component":"1","protocol":"tcp","priority":2105458943,"ip":"fe80::ffff:ffff:fffe","port":9,"type":"host","tcpType":"active"},{"foundation":"1","component":"1","protocol":"udp","priority":1686052863,"ip":"36.251.248.186","port":51336,"type":"srflx","relatedAddress":"192.168.1.111","relatedPort":58084}],"dtlsParameters":{"role":"auto","fingerprints":[{"algorithm":"sha-256","value":"00:AC:5B:5B:C4:20:55:03:F8:55:2C:D4:50:C2:D1:D1:E5:33:2A:73:4E:1B:B3:36:51:6F:A8:D2:E1:DA:93:9E"}]},"sctpParameters":{"maxMessageSize":1073741823,"port":5000}}

The Local Parameters in Chrome: {"iceParameters":{"usernameFragment":"410B","password":"Em5P0t93rDK2ECu7EyYymzyQ","iceLite":false},"iceCandidates":[{"foundation":"913901197","component":"1","protocol":"udp","priority":2113937151,"ip":"192.168.1.111","port":56977,"type":"host"},{"foundation":"842163049","component":"1","protocol":"udp","priority":1677729535,"ip":"36.251.248.186","port":45314,"type":"srflx","relatedAddress":"192.168.1.111","relatedPort":56977}],"dtlsParameters":{"role":"auto","fingerprints":[{"algorithm":"sha-256","value":"F8:6D:D1:46:64:19:13:16:11:C5:2B:69:ED:0B:A7:D5:00:E0:15:3F:46:03:85:91:32:00:0B:69:D2:02:2B:58"}]},"sctpParameters":{"maxMessageSize":16384,"port":5000}}

The error message in Ubuntu is as follows, when test fail.

[000000925] helper-common: (A) ICE gatherer last local candidate
[000000925] rawrtc-terminal: Local Parameters:
{"iceParameters":{"usernameFragment":"DjV6LT5S","password":"GTRt8E5xuITelJIztCg7t6rvXuZZu6ue","iceLite":false},"iceCandidates":[{"foundation":"0a00020f","priority":1,"ip":"10.0.2.15","protocol":"udp","port":37446,"type":"host"},{"foundation":"24fbf8bb","priority":1,"ip":"36.251.248.186","protocol":"udp","port":38849,"type":"srflx","relatedAddress":"10.0.2.15","relatedPort":37446}],"dtlsParameters":{"role":"auto","fingerprints":[{"algorithm":"sha-256","value":"CA:65:CB:FA:3A:A3:77:71:3A:02:75:D2:CE:C9:95:C8:CD:B1:63:32:8E:2C:0E:FD:F6:C2:01:A4:09:CD:4E:68"}]},"sctpParameters":{"maxMessageSize":0,"port":5000}}
[000000928] helper-handler: (A) ICE gatherer state: complete
{"iceParameters":{"usernameFragment":"78e9aced","password":"e781d65baa0fbae10f9bef08082c7775","iceLite":false},"iceCandidates":[{"foundation":"0","component":"1","protocol":"udp","priority":2122252543,"ip":"192.168.1.111","port":64676,"type":"host"},{"foundation":"2","component":"1","protocol":"udp","priority":2122187007,"ip":"fe80::ffff:ffff:fffe","port":64675,"type":"host"},{"foundation":"4","component":"1","protocol":"tcp","priority":2105524479,"ip":"192.168.1.111","port":9,"type":"host","tcpType":"active"},{"foundation":"5","component":"1","protocol":"tcp","priority":2105458943,"ip":"fe80::ffff:ffff:fffe","port":9,"type":"host","tcpType":"active"},{"foundation":"1","component":"1","protocol":"udp","priority":1686052863,"ip":"36.251.248.186","port":49643,"type":"srflx","relatedAddress":"192.168.1.111","relatedPort":64676}],"dtlsParameters":{"role":"auto","fingerprints":[{"algorithm":"sha-256","value":"15:64:19:23:C7:53:53:54:A2:56:CF:BA:95:1A:21:A2:32:CC:68:BC:D3:D9:79:A7:96:2D:9F:18:9B:B3:59:9A"}]},"sctpParameters":{"maxMessageSize":1073741823,"port":5000}}
[000042708] (A) ICE gatherer local candidate: foundation=0, protocol=udp, priority=2122252543, ip=192.168.1.111, port=64676, type=host, tcp-type=active, related-address=N/A,related-port=0; URL: N/A; enabled
[000042709] (A) ICE gatherer local candidate: foundation=2, protocol=udp, priority=2122187007, ip=fe80::ffff:ffff:fffe, port=64675, type=host, tcp-type=active, related-address=N/A,related-port=0; URL: N/A; enabled
[000042709] (A) ICE gatherer local candidate: foundation=4, protocol=tcp, priority=2105524479, ip=192.168.1.111, port=9, type=host, tcp-type=active, related-address=N/A,related-port=0; URL: N/A; enabled
[000042709] (A) ICE gatherer local candidate: foundation=5, protocol=tcp, priority=2105458943, ip=fe80::ffff:ffff:fffe, port=9, type=host, tcp-type=active, related-address=N/A,related-port=0; URL: N/A; enabled
[000042709] (A) ICE gatherer local candidate: foundation=1, protocol=udp, priority=1686052863, ip=36.251.248.186, port=49643, type=srflx, tcp-type=active, related-address=192.168.1.111,related-port=64676; URL: N/A; enabled
[000042710] rawrtc-terminal: (A) Applying remote parameters
[000042710] rawrtc-terminal: (A) Starting transports
[000042710] helper-handler: (A) ICE transport state: checking
[000042710] helper-handler: (A) DTLS transport state change: connecting
[000042722] helper-handler: (A) SCTP transport state change: connecting
[000045024] conncheck: stun response: [host|UDP|10.0.2.15:37446 --> host|UDP|192.168.1.111:64676] Connection timed out
[000045047] conncheck: stun response: [host|UDP|10.0.2.15:37446 --> srflx|UDP|36.251.248.186:49643] Connection timed out
[000045047] helper-handler: (A) ICE transport state: failed

Thank you.

lxlenovostar avatar Jan 19 '18 07:01 lxlenovostar

hi all: I think this is because the implement of Firefox. My PC in a WIFI condition, My PC local ip is: 192.168.1.103, and router ip is:10.8.114.103 ,public ip:36.251.248.186 Another peer local ip is: 10.8.117.44, public ip:36.251.248.186

When we all use Chrome, we can build p2p connection. Then p2p hole process is: c

When we all use Firefox, we can't build p2p connection. The p2p hole process is: f

FireFox send stun Binding Request by ip which get from a signal server. And Chrome directly send stun Binding Response when it receive Binding Request.

This is right? @lgrahl

lxlenovostar avatar May 08 '18 09:05 lxlenovostar

Without logs from Firefox, the cause of the failure is hard to tell.

lgrahl avatar May 08 '18 11:05 lgrahl

How to get logs ? @lgrahl

lxlenovostar avatar May 09 '18 00:05 lxlenovostar

https://wiki.mozilla.org/Media/WebRTC/Logging

lgrahl avatar May 09 '18 16:05 lgrahl