pcp icon indicating copy to clipboard operation
pcp copied to clipboard

could not establish enough connections to bootstrap peers; BUT I can ping them

Open STX5 opened this issue 3 years ago โ€ข 2 comments

when I run pcp send command, the output is like :

could not establish enough connections to bootstrap peers
	failed to dial QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ: all dials failed
  * [/ip4/104.131.131.82/tcp/4001] dial tcp4 0.0.0.0:38687->104.131.131.82:4001: i/o timeout
	failed to dial QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb: all dials failed
  * [/ip6/2604:1380:2000:7a00::1/tcp/4001] dial tcp6 [2604:1380:2000:7a00::1]:4001: connect: network is unreachable
  * [/ip4/147.75.83.83/tcp/4001] dial tcp4 0.0.0.0:38687->147.75.83.83:4001: i/o timeout
	failed to dial QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN: all dials failed
  * [/ip6/2604:1380:1000:6000::1/tcp/4001] dial tcp6 [2604:1380:1000:6000::1]:4001: connect: network is unreachable
  * [/ip4/147.75.109.213/tcp/4001] dial tcp4 0.0.0.0:38687->147.75.109.213:4001: i/o timeout
this means you will only be able to transfer files in your local network


But I can ping these IP Address ping 104.131.131.82, ping 147.75.109.213 Which means the network between me and the bootstrap peers is reachable.

PING 147.75.109.213 (147.75.109.213) type `Ctrl-C` to abort
 seq=0 32bytes from 147.75.109.213: ttl=46 time=217.729074ms
 seq=1 32bytes from 147.75.109.213: ttl=46 time=217.792354ms
 seq=2 32bytes from 147.75.109.213: ttl=46 time=217.940214ms
 seq=3 32bytes from 147.75.109.213: ttl=46 time=217.733247ms
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 147.75.109.213 ping statistics โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
PACKET STATISTICS: 4 transmitted => 4 received (0% loss)
ROUND TRIP: min=217.729074ms avg=217.798722ms max=217.940214ms stddev=85.437ยตs

So is this issue caused by my network or the network between me and the bootstrap peer or the DHT?

I really want to try this project, it looks fun and inspiring

STX5 avatar Jul 06 '22 14:07 STX5

Same issue. Could the author give a tutorial how to build a own relay server?

crazyn2 avatar Jul 07 '22 07:07 crazyn2

I use NextDNS, and disabling it on both ends and disabling macOS firewalls seemed to fix the issue.

Not really a solution though, so would be good to get a proper fix for this, but I suspect its more to do with libp2p.

vin047 avatar Jan 09 '23 12:01 vin047