Durga Prasad
Durga Prasad

Reputation: 343

IIS web site not accessible from the hosted server

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

Upvotes: 8

Views: 2617

Answers (1)

Tengku Fathullah
Tengku Fathullah

Reputation: 1370

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.

Upvotes: 1

Related Questions