TransWikia.com

Configure IIS to allow access to one site by IP address

Webmasters Asked on January 3, 2022

I have IIS 10 set up with multiple sites, all working well. To troubleshoot some intranet DNS issues I was looking at trying to enable access to any one of the sites via IP address. I have done this on apache but don’t understand how to do this on IIS.

So I would like one of the sites (any) to run on http://192.168.1.222 (example).

One Answer

IIS (and other web/application servers) can serve several sites at once from the same IP as long as it can distinguish one site from the others in any request that comes through. To achieve this they should have different IPs or the same IP with at least one domain name associated with it.

However, you can have just one site in your server assigned to one IP without any domain name associated to it, and it can be matched too when a request to that IP comes through.

So, the only thing you need to do is going to that site in IIS and in the"Bindings" dialog make sure it has the IP assigned and no domain name:

enter image description here

Before that make sure no other site in IIS has the same Ip assigned without a domain name because in that case IIS has no way to know which site should respond to requests in that IP.

That's it!

Answered by jalarcon on January 3, 2022

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP