decentral1se fd444eaa6a | ||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
go.mod | ||
go.sum | ||
pear.go |
README.md
🍐
Experiments in libp2p connectivity
libp2p
Go binaries for testing p2p connectivity. I
mostly rely on having out-of-band methods for sharing connection details, so
discovery is not something I'm testing much. Since libp2p was developed within
the context of global p2p connectivity, I'm curious if it smoothly supports
local-first and friend-to-friend network architectures like those of the
Scuttleverse (no DHT by default and use of relay
facilitated connections ("pubs", rooms)).
Build
go build -v .
Public to public (IPv4)
One one VPS with a public IPv4 address:
./pear
And one the other VPS (using the public IPv4 multiaddr of the other peer):
./pear <multiaddr>
Local-first
On your local machine:
./pear
And again, on your local (using the 127.0.0.1
multiaddr of the other peer):
./pear -p 9001 <multiaddr>
Private to private (relay)
TODO.
Private to private (holepunch)
TODO.
Use of the Tor transport
TODO.
Use of public IPFS relay & DHT
TODO.