Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 using a tunnel through putty to access my work computers through remote desktop.

Since I'm accessing multiple computers, I have multiple local IPs to access them, in the form of localhost:port.

I keep forgetting which port maps to which computer, so I need a way to set a meaningful name to each port, such as "lab", "server", etc.

Is it possible in Windows 7? Perhaps using the hosts file?

share|improve this question

Can't you save the sessions in PuTTy with the ports allocated to each saved?

Another step would be to setup your firewall to route all traffic to the specific IP's through a specific port, That way you wouldn't need to remember them.

The majority of port configuration is assigned by NAT rather than software.

share|improve this answer
Thanks for your answer, but I think I wasn't clear enough about the problem - In the remote desktop connection screen I am required to enter a computer to connect to. Currently I need to enter something like, etc. for the tunneled connections. What I want to enter instead is "lab" or "server". – Haggai Nov 8 '11 at 14:42
Ahhh, i'm sure i read 'PuTTy' somewhere in your original question rather than 'Remote Desktop'! My bad, sorry! What haimg listed above should work :) – HaydnWVN Nov 8 '11 at 16:13

If PuTTY supports standard "services" name resolution, you might try adding these port numbers to your services file:

Edit C:\Windows\System32\drivers\etc (the etc directory is usually hidden, replace C:\ with whatever your system drive is). It is a plain text file, format is self-evident and documented in the top of the file.

Standard service name resolution uses this file to resolve say "smtp" to port 25, so adding your ports there might do the trick.

share|improve this answer
Thanks. It's not PuTTY that needs to resolve host names, but rather it is the remote desktop connection function. And it doesn't try to resolve using the services file, according to my test now. – Haggai Nov 8 '11 at 16:11
So you need to add these entries to whatever tries to resolve them. If it's a linux machine, add them to /etc/services. – haimg Nov 8 '11 at 16: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.