Closed farhoud closed 1 year ago
Adding to the above logs This is the log for Kubo when go-fula/mobile attempts to connect:
2022-07-30T12:59:11.649Z DEBUG p2p-holepunch holepunch/svc.go:199 received hole punch request{"peer": "12D3KooWAERBS8XvDNopxeqMZnDEyHEefB83bPeE3wM8tSte1mrs", "addrs": ["/ip6/64:ff9b::5445:2141/udp/4001/quic","/ip4/84.69.33.65/tcp/4001","/ip4/84.69.33.65/udp/4001/quic"]}
2022-07-30T12:59:11.997Z DEBUG p2p-holepunch holepunch/svc.go:257 starting hole punch {"peer": "12D3KooWAERBS8XvDNopxeqMZnDEyHEefB83bPeE3wM8tSte1mrs"}
2022-07-30T12:59:12.923Z DEBUG p2p-holepunch holepunch/util.go:67 hole punch successful {"peer": "12D3KooWAERBS8XvDNopxeqMZnDEyHEefB83bPeE3wM8tSte1mrs"}
2022-07-30T12:59:38.092Z DEBUG p2p-holepunch holepunch/holepuncher.go:132 got inbound proxy conn {"peer": "12D3KooWKrYvhXiLQTpamegFyErSMN7tjpSqqrwVnh1txT3TEuEU"}
2022-07-30T12:59:39.741Z DEBUG p2p-holepunch holepunch/holepuncher.go:143 peer RTT is 543.353208ms; starting hole punch in 271.676604ms
2022-07-30T12:59:45.017Z DEBUG p2p-holepunch holepunch/util.go:64 hole punch attempt with peer failed {"peer ID": "12D3KooWKrYvhXiLQTpamegFyErSMN7tjpSqqrwVnh1txT3TEuEU", "error": "failed to dial 12D3KooWKrYvhXiLQTpamegFyErSMN7tjpSqqrwVnh1txT3TEuEU:\n * [/ip6/::1/tcp/4001] dial tcp6 [::1]:4001: connect: cannot assign requested address\n * [/ip4/192.168.1.10/tcp/4001] dial tcp4 0.0.0.0:4001->192.168.1.10:4001: i/o timeout\n * [/ip4/91.98.172.173/tcp/2112] dial tcp4 0.0.0.0:4001->91.98.172.173:2112: i/o timeout"}
2022-07-30T12:59:47.713Z DEBUG p2p-holepunch holepunch/holepuncher.go:143 peer RTT is 2.694861292s; starting hole punch in 1.347430646s
2022-07-30T12:59:54.064Z DEBUG p2p-holepunch holepunch/util.go:64 hole punch attempt with peer failed {"peer ID": "12D3KooWKrYvhXiLQTpamegFyErSMN7tjpSqqrwVnh1txT3TEuEU", "error": "context deadline exceeded"}
2022-07-30T12:59:54.064Z DEBUG p2p-holepunch holepunch/holepuncher.go:138 hole punching failed {"peer": "12D3KooWKrYvhXiLQTpamegFyErSMN7tjpSqqrwVnh1txT3TEuEU", "error": "failed to open hole-punching stream: no usable connection to peer"}
The log indicates that the timeout for hole punching gets exceeded.
Find out where I can find timeout. Output log of go-fula/mobile test: