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
To grant a user permission to a site or an application, select the site or application and then open the IIS Manager Permissions feature to configure the users who are allowed to connect to that site or application.
You'll need to port forward port 8080 from your firewall/router to the server. If you want external users to connect to the web site by name then you'll need to purchase and register a domain name. You'll need to find a DNS host for your DNS records for the domain. Many registrars offer this service at no cost.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With