V
V
Vladimir Kuts2021-01-19 22:50:14
*nix-like systems
Vladimir Kuts, 2021-01-19 22:50:14

Proxy traffic from outside to Localhost?

A certain process (Jupyter notebook) is running on a MacOS computer, listening on a port at localhost:8888.
I am connecting via vpn.
Is it possible to quickly proxy using the same nc to an external ip as if I am making a request locally?

Tried something like this:

mkfifo /tmp/fifo
nc -lkv 8888  </tmp/fifo | nc localhost 8888 >/tmp/fifo

does not work. Forbidden error - the process sees that the request is being made from outside.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2021-01-20
@fox_12

socat tcp-l:8088,fork,reuseaddr tcp:127.0.0.1:8888
Checked - it works, only the external port number needs to be set differently - otherwise it will be displayed that the address is already in use, even if port 8888 is open only on localhost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question