I have a pyLoad machine in my local network which connects with autossh to my hosted virtual server so that I can access pyLoad from wherever I am. Now I want to have access to the API port which is connected to the virtual server:

tcp 0 0* LISTEN

How can I make this port (which is only available on the localhost of the virtual server) accessible for remote connections? Thanks


Generally, you can't. The netblock is reserved and unroutable.

But you can tunnel to it. From a remote machine, you could do

ssh virtualserver -L 12345:localhost:65153

and then, on your remote machine, local port 12345 will be connected through to virtualserver's port 65153.

But there's no way to make any machine's localhost accessible from off-server without using some kind of private network (VPN, ssh tunneling, proxy).

  • 1
    I solved it with a nginx proxy_pass argument for the webinterface port of pyLoad on port 8000 which is now accessible online on port 80 so I thought it must be possible for another port, too but not with nginx / a webserver!? – Peleke Jul 2 '13 at 20:37
  • See above: VPN, ssh tunneling, proxy. A decent webserver makes a fine proxy (see many comparable questions on SF). – MadHatter supports Monica Jul 3 '13 at 6:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.