Relay http request to dht peer
Install globally to use the http-dht-proxy command:
npm install -g http-dht-proxy
Run a http-dht-proxy:
http-dht-proxy 8080
Start proxy server: node bin.js
HTTP-to-DHT proxy on 8080
Start sample server: node example/server.js
Local http server on 8081
DHT public key abcdef123456
Send sample request: node example/client.js <dht-public-key>, e.g.
node example/client.js abcdef123456
Server will receive request, e.g.
New request {
host: 'abcdef123456.localhost:8080',
} {"message":"Hello world!"}