@jcoreio/tcp-proxy
v1.1.0
Published
Proxy TCP connections to a remote host
Downloads
1
Readme
tcp-proxy
Proxy TCP connections to a remote host
Installation
With yarn
: yarn global add @jcoreio/tcp-proxy
With npm
: npm install -g @jcoreio/tcp-proxy
Usage
tcp-proxy <HOST> <PORT>
, e.g. tcp-proxy 10.1.1.10 5000
Usage with Docker
If you need to run tcp-proxy on a host that has Docker but not node.js, you can run a command like this:
nohup docker run -p <PORT>:<PORT> node:16 /bin/bash -c "npm install -g @jcoreio/tcp-proxy && tcp-proxy <TARGET IP> <PORT>" > redirect.log &