Skip to content
Ensures local IPFS node maintains a constant connection to a list of other IPFS peers.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
package-lock.json
package.json
peers.js
stay-connected.js

README.md

ipfs-stay-connected

A simple app that issues IPFS shell commands to keep the local node connected to a list of other IPFS nodes.

IPFS has a poor habit of dropping connections to peers as part of its normal operation. This is extremely frustrating when trying to send and receive files with specific peers that you manually connected to. This app will renew the connection every 20 seconds by issuing a ipfs swarm connect <peer> command for each peer listed in the peers.js file.

This app is intended for personal use, but other people are free to fork and use it if they find it useful.

Installation

  • git clone https://github.com/christroutner/ipfs-stay-connected
  • cd ipfs-stay-connected
  • npm install
  • ipfs daemon &
  • npm start

Customization

Edit the peers.js file and add your own IPFS peers.

License

MIT

You can’t perform that action at this time.