Cannot connect to Localhost on server running IIS

Stan picture Stan · Apr 26, 2017 · Viewed 59.6k times · Source

I recently installed IIS on a Windows 2012 R2 server and can't seem to connect to localhost, the IP, server DNS, etc. I've tried the following and nothing seems to be helping:

  1. In CMD run netstat -ano to check that port :80 is listening (it is)
  2. Bound the site to All Unassigned and the IP address on port 80 (no hostname)
  3. Adjusting the security permissions on the wwwroot folder to confirm that IIS_IUSRS has access and tried adding IUSR
  4. Changed the Application Pool settings for Load User Profile from False to True
  5. Edit the hosts file to add the line 127.0.0.1 localhost
  6. Ensured that Anonymous Authentication is enabled and no others are enabled
  7. Temporarily disable the MacAfee running on the machine

Not sure what else to try or where it might be failing here.

Answer

Lauri Peltonen picture Lauri Peltonen · Nov 3, 2017

I was struggling with a similar problem - I didn't have any connections and couldn't connect to even localhost with IIS.

Turns out I had forgotten to open IIS as an administrator. That fixed the problem.