Can't connect to Localhost on server using IIS

I recently installed IIS on a Windows 2012 R2 server and cannot connect to localhost, IP, DNS servers, etc. I have tried the following and nothing seems to help:

  • In CMD run netstat -ano to check what port: 80 is listening on (this)
  • Bind site to all unassigned and IP address on port 80 (no hostname)
  • Configuring security permissions in the wwwroot folder to validate IIS_IUSRS access and attempt to add IUSR
  • Changed application pool options for loading user profile from False to True
  • Edit your hosts file to add the line 127.0.0.1 localhost

  • Make sure Anonymous Authentication is enabled and others are not enabled.
  • Temporarily disable MacAfee running on your computer.

Not sure what else to try or where this might be happening here.

+3


source to share


3 answers


It turns out I needed to grant permission to the application pool that the application was using. The application pool id was NetworkService, so since I granted read / execute permissions to the Network Service, I was able to navigate to the site.



0


source


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



It turns out I forgot to open IIS as Administrator. This fixed the problem.

+2


source


You will need Regiis for your .Net

.

Open CMD and select:

"%windir%\Microsoft.NET\Framework64\v4.0.30319"

      

Then run the following command: "aspnet_regiis -ir"

+1


source







All Articles