Windows – IP addresses not listed for IIS website bindings

godaddyiisipwindows

Recently purchased a windows cloud server godaddy. Now i installed iis7 and all other required software. And i have 50.62.1.89 and 2 more public ips. Also i have a private ip 10.1.0.2. Now the problem is am unable to access any website through any public ip. All my public ips are opening default website only. also i cant see pubic ips for IIS website bindings. Only my private ip listed for IIS binding.

And in my server also public opening only default website. But am able to open websites using private ip. But my public ip addresses pointed to my server correctly. am able to open my server using remote desktop using public ip. Also as i said already public ip opening default website from IIS without problem.

Please help me. Am confused for last 2 days.

Best Answer

The bindings in IIS should use the internal IP. You will either have Port Forwarding Rules or Load Balancing Rules that take the external IP and translate it to the internal IP. Once translated the virtual machines will use the internal IP for everything, including bindings in IIS. When the request leaves the server the request will be translated back to the external IP.

Here is the steps to set up IIS for a working website:

  1. Create or have an already working network in Go Daddy Cloud Server Console.
  2. Create a windows VM
  3. Under Start
  4. Administrative Tools
  5. Server Manager
  6. Roles
  7. Web Server IIS
  8. Right click sites
  9. Add Website
  10. Site name: mysite.com
  11. Physical Path: choose path to where you website will live on the filesystem. This example we will create and use: c:\inetpub\wwwroot\mysite.com
  12. Binding: All Unassigned Port 80
  13. Hostname mysite.com
  14. Click Ok
  15. Right click mysite.com
  16. Edit Bindings
  17. Add
  18. host name: www.mysite.com
  19. Click ok
  20. Add your content to: c:\inetpub\wwwroot\mysite.com
  21. From the Go Daddy Cloud Server console add a port forward to a public IP, please see:

http://support.godaddy.com/help/6197

At this point, if you go to yourpublicIP you will see the IIS7 welcome page. This is because this IP is owned by the Default site in IIS.

If you already have the domain pointed to your public IP, ie mysite.com resolves to yourpublicIPaddress, then visiting mysite.com will work in your web browser.

If you do not have the DNS pointed to the public IP, you can edit the hosts file on your local machine to cause the domain to resolve to that IP ON YOUR MACHINE ONLY:

For paths see:

http://support.godaddy.com/help/3354/viewing-your-website-before-changing-your-nameservers-using-host-files

Add an entry on a single line like: mysite.com 50.62.1.89

Save and close the file.

Close your web browser, reopen, and now go to mysite.com. It should work as expected.

Using the above method you can place as many websites as you want on the 50.62.1.89 IP address.

If you want a website to own everything for that IP Address.

  1. Start
  2. Administrative tools
  3. Server Manager
  4. Roles
  5. Web Server IIS
  6. Right click mysite.com
  7. Edit Bindings
  8. Add
  9. IP Address: 10.1.0.2
  10. Ok

Now Going to yourpublicIPaddress will show your website.