-1

I am using Windows Server 2019 and in IIS 10 I have created a website and I have bound it to both: "localhost" and "mydomain.com" on port 80.

mydomain.com works correctly from any client but on the server only when I call "localhost" it works otherwise I get the following error (when called by domain):

enter image description here

1

Okay, so other clients can find you and localhost works because it is the host. However, mydomain.com can't connect. Remember that mydomain.com still has to be resolved, routed and connect via the network (not the local stack like localhost) even if it points to itself.

Have you tried NSlookup from the CMD prompt to resolved mydomain.com? Does it resolve to the correct IP address?

Have you tried TRACERT from the server's CMD prompt to see the path that it takes to make the connection? Where does TRACERT stop?

Have you tried CURL/WGET from command line to see their response https://serverfault.com/questions/483754/is-there-a-built-in-command-line-tool-under-windows-like-wget-curl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.