Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to give a domain name to the IP address and port for an application in Windows 7. For example, test.com should map to

Is there anyway that we can do it by using a web server or DNS server?

share|improve this question
You are trying to do something that doesn't make any sense. What's your actual problem? What are you trying to make happen? –  David Schwartz Feb 25 '12 at 23:54
I am using one application which is running on want use this address in different application but this application doesn't accept ":" in I want to create an name with the ip and port. –  sandeep.malladi Feb 26 '12 at 0:12
Unfortunately there is no known/easy way to make an alias for an IP/port pair. The closest you can come is making an alias for an IP address with the HOSTS file. :-( –  Synetech Feb 26 '12 at 0:18
@Synetech Bad troll is bad. Reverse proxies do this all the time. –  ta.speot.is Feb 26 '12 at 0:21
@ta.speot.is, fine; drop the “known” from my comment and leave the “easy”. –  Synetech Feb 26 '12 at 0:37

1 Answer 1

Most webservers can be run as reverse proxies, suitable for doing this. If you do everything right, you'll end up with something like the below (minus the "remote" part - since this will all be on one machine):

reverse proxy

  • Navigator is your machine
  • Reverse Proxy is nginx running on your machine (
  • Remote Server is the web site running on your machine (

You can use a lightweight webserver like nginx (even runs on Windows), configure it to reverse proxy test.com to and then add the following entry to your HOSTS file: test.com
share|improve this answer
looks impressive. Out of interest, why is that called reverse proxy? a proxy is a middle man.. what is the reverse aspect? –  barlop Feb 26 '12 at 1:59
@barlop what we used to call just "proxy" or proxy server normally sits close to the client, or in the client infrastracture and it is just used by a set of clients to access multiple content. A reverse proxy works close to the server, any client that want to access that content will reach first the reverse proxy. –  José F. Romaniello Mar 27 '12 at 17:21

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.