Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schollz/ipfs-connect
Easily connect two computers in the IPFS
https://github.com/schollz/ipfs-connect
ipfs ipfs-api ipfs-gateway
Last synced: 2 days ago
JSON representation
Easily connect two computers in the IPFS
- Host: GitHub
- URL: https://github.com/schollz/ipfs-connect
- Owner: schollz
- License: mit
- Created: 2020-01-08T20:18:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T13:42:07.000Z (over 4 years ago)
- Last Synced: 2024-12-16T11:18:47.328Z (7 days ago)
- Topics: ipfs, ipfs-api, ipfs-gateway
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 runningipfs-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](https://github.com/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