derhuerst / tcp-over-websockets
- понедельник, 27 марта 2017 г. в 03:11:45
JavaScript
Tunnel TCP through WebSockets.
Tunnel TCP through WebSockets. Access anything you want, even from a crappy WiFi which only allows HTTPS.
Note: chisel is probably the same thing but better.
npm install -g tcp-over-websockets
tcp-over-websockets --tunnel wss://example.org --target github.com:22 --port 8022This will expose github.com:22 on localhost:8022, tunneled through example.org. example.org is the tunneling server.
Works like ssh -N -L 8022:github.com:22 user@example.org, except that it's TCP over WebSockets instead of TCP over SSH.
npm i -g tcp-over-websockets
tcp-over-websockets-serverThere's a public server running at wss://tcp-over-websockets-abvntgfmzf.now.sh, powered by now ❤.
If you have a question, found a bug or want to propose a feature, have a look at the issues page.