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

Is it possible to point a subdomain to a port address? For example sub.localhost -> localhost:82 How would I go about doing that in IIS 6?


share|improve this question

migrated from Apr 26 '10 at 4:47

This question came from our site for professional and enthusiast programmers.

It is not possible to do this directly. You need to setup another web server at port 80 and set reverse proxy to localhost:82.

share|improve this answer

The DNS system has nothing to do with ports, so you wouldn't be able to do it there.

If no port is given, a browser will always connect to port 80 for HTTP connections. Any other port used needs to be explicitly specified in the URL, you can't transparently use another port.

If you want to be able to type http://localhost into your browser and have a server at localhost:82 kick into action, you will have to run some server at localhost:80. This server could either redirect or reverse proxy to port 82.

share|improve this answer

PortMapper by AnalogX might help you do what you want.

share|improve this answer

Your Answer


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