ic
github.com/schollz/ipfs-connect
go get github.com/schollz/ipfs-connect
ic

github.com/schollz/ipfs-connect

Easily connect two computers in the IPFS

go get github.com/schollz/ipfs-connect
Readme

ipfs-connector

Using the IPFS to transfer files between computers can be slow because it can take time to locate a path between the two computers on the IPFS network. This makes it faster by lowering the barrier towards making sure your computers are in each other's swarm.

First run the IPFS daemon on your computers

$ ipfs daemon

Then get ipfs-connect using go:

$ go get github.com/schollz/ipfs-connect

Then connect the two computers. On the first computer type:

$ ipfs-connect mycomps
your id: jkljl88-ji98-449-a0e1-c87a04802922
add another computer to your swarm by running

ipfs-connect mycomps

And then on the other computer type

$ ipfs-connect mycomps

And then, voila! Your computers will be swarmed together as long as the IP addresses don't change. Now you can share files via IPFS between two computers without waiting.

How does it work?

This uses a simple rendezvous server: schollz/duct which is a ephemeral MPMC pubsub. Both computers connect to the duct tape server and listen for a payload about their IPFS addresses. Once they receive the addresses they connect to them via the ipfs swarm connect command.

License

MIT

GitHub Stars

11

LAST COMMIT

2yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20200820134201-635490151b6a
1yr ago
v0.0.0-20200213184530-49b1a9e7b182
2yrs ago
No alternatives found
No tutorials found
Add a tutorial