Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A windows host machine (which dynamically has the address runs

  • (i) an ssh tunnel with port forwarding (forwards the port localhost:5432 with the following command: autossh.exe -M 2000 -L 5432:localhost:5432 server
  • (ii) vmware linux machine (ubuntu)

How can I access the 5432 port of the host machine from linux? The port forwarding binds 5432 port with the localhost ( and not with the dynamically assigned ip address ( This makes it impossible to access the port with

Unfortunatelly I cannot do the port forwarding directly from the linux VM.


share|improve this question

migrated from Sep 16 '13 at 22:24

This question came from our site for system and network administrators.

=) This are some easy easy points... If you look closer to your port forward -L you are using [nothing]:5432:localhost:5432 just replace nothing with the ip address that you want to have the port listening or, just add server and you will have in all interfaces that port listening.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .