Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

Thanks

share|improve this question

migrated from stackoverflow.com Apr 26 '10 at 4:47

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

3 Answers 3

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

 
discard

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