How to access your website by IP address if you’re using host headers in IIS 6

domain-name-systemiis-6ip

I'm using host headers in IIS 6 to host multiple websites for the same IP address. Currently I have a need to access one of the websites by IP address rather than URL. Any idea how to do this?

I could take advantage of DNS Rewrite on my firewall but I don't have access to it right at the moment.

Best Answer

Put another host header directive in on the target web site, only enter the desired IP address instead of the host name when you create it. The host header directives just inspect the value of the HOST: HTTP header (which is a string) so you can enter anything in there.

Obviously the server will need to actually have that IP address assigned to it and the web site will need to be listening to that address in order for it to answer :)

Related Topic