Search code examples
windowsiisiis-8windows-server-2012

Cannot connect to Localhost on server running IIS


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.


Solution

  • Turns out I needed to grant permission to the Application Pool that the application was using. The Application Pool's identity was NetworkService, so as so as I granted Network Service read/execute permissions I was able to navigate to the site.