How to configure IIS to access website using IP address?

IIS (Internet Information Services) allows you to access your website via an IP address. To achieve this, you just have to bind your website to a non-standard port along with public IP address of your VPS. This is more helpful when you want to check your website functionality before making DNS (nameservers) changes, and you have not configured any nameservers yet. You can follow below tutorial to configure IIS to access a website via IP address.

Add a Binding in IIS 

  1. Login into your Window server via Remote Desktop.
  2. Go to StartAdministrative Tools → Internet Information Services (IIS) Manager.

    Launch IIS Manager

  3. In the Connections pane of IIS, expand the Sites and select the website which you want to access via IP address.

    Select Website

  4. Click on Bindings link and you will see current bindings of that website.

    Select Bindings

  5. Click on Add button to add a new binding.

    Add Binding

  6. On the Add Site Binding window, keep website Type as http. Select an IP address from the drop-down menu upon which you want to bind the website. Since other websites (along with their Host Header Values) are already bound on port 80, you won't be able to bind this new website on port 80 without Host Header Value (Host name). So, specify a port number (other than default port 80) on which you want to bind this new website. Keep Host name as blank, click OK and then Close. Once the binding is added in IIS Manager, the next step is allowing a port in Windows Firewall.

    Add Site Binding

Open a Port in Windows Firewall

 

  1. Go to StartAdministrative Tools → Windows Firewall with Advanced Security.

    Windows Firewall

  2. At Windows Firewall window, click on Inbound Rules.

    Inbound Rules

  3. Under Actions pane, click on New Rule and New Inbound Rule Wizard will be opened. On this window, select the Port radio button and click on Next.

    Allow Port

  4. On the next screen, select TCP and Specific local ports radio button. Specify a port number (upon which you set binding in IIS) in Specific local ports field and click Next.

    New Inbound TCP Port Rule

  5. On the next screen, select Allow the connection and click Next.

    Allow Connection


  6. Select the profile where you want to apply this rule and click Next.

    Rule Wizard

  7. Specify Name and Description for the newly created rule & click Finish.

    Give Rule A Name

Once you allow the port number in Windows Firewall, you will be able to access your website using via IP address like http://VPS-IP-Address:81.


  • 57 Users Found This Useful

Was this answer helpful?

Related Articles

How to Fix HTTP Error 500 (or 500.21) - Internal Server Error Handler SSINC-shtml?

Error Message HTTP Error 500 (or 500.21) - Internal Server Error Handler SSINC-shtm' handler...

How to export an SSL certificate from Windows server?

Following are the steps to Export an SSL Certificate from the Windows Server: Open IIS...

How to generate CSR key and install SSL certificate on IIS 8?

SSL (Secure Sockets Layer) is an encryption technology, which creates an encrypted connection...

How to Run Multiple PHP Versions in Windows VPS?

There are times when your PHP websites rely on functions/features that are available only in some...

How to set periodic recycling for application pool in IIS 7?

Following are the steps to set periodic recycling for the application pool in IIS 7: Login to...