Server Fault is a question and answer site for system and network administrators. 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

I am trying to make a tunnel between a server and laptop with Putty. The problem is, since the laptop has no public IP address, I have to make a reverse connection.

ASCII Artwork:

SERVER(PORT:6000) ----------> LAPTOP(PORT:7000)

However, since laptop has no public IP Address I have to:

SERVER(PORT:6000) <---------- LAPTOP(PORT:7000)

But, all the data coming from will be transferred from server to laptop.

share|improve this question
up vote 11 down vote accepted

In PuTTY go to Settings -> Connection -> SSH -> Tunnels. You can add port forwards there. For reverse forward, enter source port, and destination, but choose 'Remote' instead of 'Local'.

In your case, put 6000 in to source port, localhost:7000 in the Destination, and choose Remote.

share|improve this answer
Yeah, I was trying the same but I still can not connect :( What can be the problem ?? – Ozer Oct 13 '11 at 12:54
How did you try? – cmouse Oct 13 '11 at 13:50

You can do this with the -R option to ssh. It allows you to establish a connection backwards (well both ways). See this page for more

share|improve this answer
Thanks but I want to do it with putty, is there anyway to do it with putty ?? – Ozer Oct 13 '11 at 12:53
Yes. The SSH Tunnels page allows you to set it up. The Help link should describe it. otherwise, use plink from the command-line – uSlackr Oct 13 '11 at 13:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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