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. @mdslab/wstun
is similar.
Using npx
:
npx tcp-over-websockets --tunnel wss://example.org --target github.com:22 --port 8022
Or by installing manually npx
:
npm install -g tcp-over-websockets
tcp-over-websockets --tunnel wss://example.org --target github.com:22 --port 8022
This will expose github.com:22
on localhost:8022
, tunneled through a tunneling server at example.org
.
Works like ssh -N -L 8022:github.com:22 [email protected]
, except that it's TCP over WebSockets instead of TCP over SSH.
Using npx
:
npx -p tcp-over-websockets tcp-over-websockets-server
Or by installing manually:
npm i -g tcp-over-websockets
tcp-over-websockets-server
There'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.