Go to file
j 89cde6d767 dont use ipv6 localhost, chrome disables ipv6 if no global link is available 2015-02-26 14:14:53 +05:30
bin convert to python3 2014-09-09 14:41:31 +02:00
example update example 2014-09-01 14:29:36 +02:00
peerlink dont use ipv6 localhost, chrome disables ipv6 if no global link is available 2015-02-26 14:14:53 +05:30
.gitignore convert to python3 2014-09-09 14:41:31 +02:00
README.md dont use ipv6 localhost, chrome disables ipv6 if no global link is available 2015-02-26 14:14:53 +05:30
requirements.txt add README and setup.py 2014-09-30 18:07:52 +02:00
setup.py add README and setup.py 2014-09-30 18:07:52 +02:00

README.md

get peerlink

git clone https://git.0x2620.org/peerlink.git

install dependencies

pip3 install -r requirements.txt

start peerlink

python3 bin/peerlink

register your application

register application POST http://127.0.0.1:8842/add { "name": "yourappname", "url": "http://127.0.0.1:YOURPORT/remote/" }

now peers can make requetss to

GET|POST http://127.0.0.1:8842/<peer id>/PATH

that get proxied and end up on <peer id> at

GET|POST http://127.0.0.1:YOURPORT/remote/PATH

requests have a From: header to indicate the remote peer id making the request

local peer discovery

peerlink discovers peers in the local network,

GET http://127.0.0.1:8842/info

contains info on currently visible peers