The easiest way, without using any third-party tools is to use a reverse, SSH tunnel. The pre-requisite
Execute the below command to create a reverse tunnel from the remote machine to the localhost
ssh <USER>@<REMOTE_IP> -R <REMOTE_PORT>:<LOCAL_HOST>:<LOCAL_PORT>
All requests from REMOTE_PORT are forwarded : using the created tunnel
To expose hello world http service running on 8080 can be exposed over the internet using
ssh <USER>@<REMOTE_IP> -R <REMOTE_PORT>:localhost:8080
HTTP://REMOTE_IP:REMOTE_PORT/hello...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The easiest way, without using any third-party tools is to use a reverse, SSH tunnel.
The pre-requisite
Execute the below command to create a reverse tunnel from the remote machine to the localhost
ssh <USER>@<REMOTE_IP> -R <REMOTE_PORT>:<LOCAL_HOST>:<LOCAL_PORT>
All requests from REMOTE_PORT are forwarded : using the created tunnel
To expose hello world http service running on 8080 can be exposed over the internet using
ssh <USER>@<REMOTE_IP> -R <REMOTE_PORT>:localhost:8080
HTTP://REMOTE_IP:REMOTE_PORT/hello...