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:
127.0.0.1 localhost
Not sure what else to try or where it might be failing here.
The localhost simulates a web server running on your computer. When the “localhost refused to connect” error appears, it is likely due to misconfigured port. Other common reasons include insufficient permissions and the Apache webserver not running properly.
Make sure the website has been started in IIS: In the left pane of IIS Manager under "Sites", select the appropriate site. If your site is configured under the "Default Web Site", select that one. In the right pane under "Manage Website", there are "Start" and "Stop" links.
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.
You will need to Regiis your .Net
.
Open CMD and browse to:
"%windir%\Microsoft.NET\Framework64\v4.0.30319"
Then run the following command: "aspnet_regiis -ir"
**Update for windows server 2016/ Win10 /IIS8: No longer need to RegIIS , instead, you'll need to open "Turn windows Features on or off" Than Enable .Net Framework4.X Advanced services and "IIS/World Wide web/Application development features/ASP.Net 4.X"
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