Source
- use
socat
to create a tunnel from the localhost-only port to another port that is then publicly accessible
socat tcp-listen:<public port>,reuseaddr,fork tcp:localhost:<localhost-only port>
Source
socat
to create a tunnel from the localhost-only port to another port that is then publicly accessiblesocat tcp-listen:<public port>,reuseaddr,fork tcp:localhost:<localhost-only port>