This repository was archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
pc ice state change:Checking on Ubuntu #16
Copy link
Copy link
Open
Description
The server was run on VirtualBox Ubuntu 18.04 and openssh-server is installed on the server. openssh-server is accessible if connect to it from localhost. The Internet is present on the VirtualBox (connected via NAT adapted) .
The client was run Ubuntu 16.04 host (tried also on 18.04). Here are commands and logs from server:
vbuser@vbuser-VirtualBox:~$ export KEY=22daf66d-46d5-4924-9d92-c4e5e5c9caea
vbuser@vbuser-VirtualBox:~$ ./ssh-p2p server -key=$KEY -dial=127.0.0.1:22
2019/02/22 17:41:05 main.go:194: server started
2019/02/22 17:42:58 main.go:196: info: signaling.ConnectInfo{Source:"8d5d8a69-f12f-437b-b7b8-3e5a2516ba27", SDP:"v=0\r\no=- 990904099 1550850178 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256 22:39:8A:9D:F4:97:37:40:80:35:AE:25:1E:F1:3E:E1:DF:08:F3:39:11:B7:4D:35:A3:8C:05:C7:20:09:EE:C4\r\na=group:BUNDLE data\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=setup:actpass\r\na=mid:data\r\na=sendrecv\r\na=sctpmap:5000 webrtc-datachannel 1024\r\na=ice-ufrag:aZHQXWUvrKamgiFY\r\na=ice-pwd:MJhSWisrVCpbHyJnmDlYjPLggDzSvxBB\r\na=candidate:foundation 1 udp 29770 10.66.253.222 60995 typ host generation 0\r\na=candidate:foundation 2 udp 2306 10.66.253.222 60995 typ host generation 0\r\na=candidate:foundation 1 udp 22814 192.168.122.1 38529 typ host generation 0\r\na=candidate:foundation 2 udp 35652 192.168.122.1 38529 typ host generation 0\r\na=candidate:foundation 1 udp 31392 172.20.1.1 50703 typ host generation 0\r\na=candidate:foundation 2 udp 3888 172.20.1.1 50703 typ host generation 0\r\na=candidate:foundation 1 udp 26138 172.17.0.1 57581 typ host generation 0\r\na=candidate:foundation 2 udp 2740 172.17.0.1 57581 typ host generation 0\r\na=candidate:foundation 1 udp 5710 172.22.0.1 38818 typ host generation 0\r\na=candidate:foundation 2 udp 11218 172.22.0.1 38818 typ host generation 0\r\na=end-of-candidates\r\na=setup:actpass\r\n"}
could not listen udp fe80::1f99:a47d:f0d3:294d
could not allocate udp6 stun:stun.l.google.com:19302: Failed to create STUN client: dial udp6 [2a00:1450:4010:c01::7f]:19302: connect: network is unreachable
2019/02/22 17:42:58 main.go:209: pc ice state change:Checking
and from the client:
jrybak2312@jrybak2312-Precision-M4700:~/IdeaProjects/ssh-p2p$ export KEY=22daf66d-46d5-4924-9d92-c4e5e5c9caea
jrybak2312@jrybak2312-Precision-M4700:~/IdeaProjects/ssh-p2p$ ./ssh-p2p client -key=$KEY -listen=127.0.0.1:2222
2019/02/22 17:42:24 main.go:165: listen: 127.0.0.1:2222
2019/02/22 17:42:53 main.go:262: client id: 8d5d8a69-f12f-437b-b7b8-3e5a2516ba27
could not listen udp fe80::7879:824b:7b0b:b32a
could not allocate udp4 stun:signaling.irieda.com:19302: Failed to make STUN request: read udp4 10.66.253.222:54093->35.227.187.91:19302: i/o timeout
could not allocate udp6 stun:signaling.irieda.com:19302: Failed to create STUN client: dial udp6: address signaling.irieda.com: no suitable address found
2019/02/22 17:42:58 main.go:295: DataChannel:&{{{0 0} 0 0 0 0} 0xc00000c040 data true <nil> <nil> false 0xc00022e00a low connecting 0 0 0x6a2810 0x6a26d0 0xc000150000 <nil>}
2019/02/22 17:43:00 main.go:300: info: signaling.ConnectInfo{Source:"22daf66d-46d5-4924-9d92-c4e5e5c9caea", SDP:"v=0\r\no=- 133720317 1550850178 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256 ED:BF:6D:35:8C:37:26:0E:D6:90:F3:32:49:AD:B4:25:37:18:D7:5A:98:F3:0C:4D:9E:05:DE:EC:58:81:3C:C1\r\na=group:BUNDLE data\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=setup:active\r\na=mid:data\r\na=sendrecv\r\na=sctpmap:5000 webrtc-datachannel 1024\r\na=ice-ufrag:PeQGGMKWdmALApqE\r\na=ice-pwd:GmgAtVrXoadYeYabFFOemOnACLjcnPLp\r\na=candidate:foundation 1 udp 45376 10.0.2.15 48415 typ host generation 0\r\na=candidate:foundation 2 udp 37122 10.0.2.15 48415 typ host generation 0\r\na=candidate:foundation 1 udp 36976 93.77.254.210 37193 typ srflx raddr 10.0.2.15 rport 53061 generation 0\r\na=candidate:foundation 2 udp 31328 93.77.254.210 37193 typ srflx raddr 10.0.2.15 rport 53061 generation 0\r\na=end-of-candidates\r\n"}
2019/02/22 17:43:00 main.go:269: pc ice state change:Checking
It is nothing happens, just stuck after the run:
ssh -p 2222 [email protected]
Metadata
Metadata
Assignees
Labels
No labels