8

I hosted a website in IIS 8 and binding with a proper hosting name (subdomain.xyz.com). It is working from my local machine, but it is not working when I access from hosted server. It is showing authentication window, even I provide a valid credentials it is showing again and again.

The server is hosted in Azure. Server: Windows Server 2012 R2

Durga Prasad
  • 333
  • 2
  • 6
  • 16
  • "it is not working", ahm.. what do you mean by "not working"? the port is not responding when you run a port-scan? is the port responding, but you're not getting a website? when you run netstat on the server, is IIS really listening on port 80? are you behind a firewall? – hanshenrik Nov 28 '15 at 08:38
  • When am trying to access outside the firewall it is working fine. In the same machine (hosted) it is not working. – Durga Prasad Nov 30 '15 at 12:54

1 Answers1

1

It is because NAT loopback, you can try to use internal ip if you access from hosted server. if you want to access using your hosting name, make sure to point it inside "hosts" file.

C:\Windows\System32\drivers\etc\hosts

add this line

127.0.0.1 subdomain.xyz.com

so basically what hosts file do is, it actually point to your localhost every time you enter subdomain.xyz.com in your browser.

Tengku Fathullah
  • 1,279
  • 1
  • 18
  • 43