Host file and IIS binding not working

Problem
  Today, I'd like to simulate a DNS at my local site but I got some weird error.
ERR_CONNECTION_REFUSED



ping dev.kim.xinfo  , It can be got a normal reply.



Setup

1.host file adding a record.

2.IIS adding a bindng


Solution
I found the answer at StackOverflow although that it was not being marked the right answer but it is exactly what I want.

1 Checking IP address List has a record 0.0.0.0
netsh http show iplisten

My 0.0.0.0 was being removed.

2.Adding a record 0.0.0.0,This command needs a higher permission.e.g. Administrator
netsh http add iplisten ipaddress=0.0.0.0

Checking again

3.After IISreset that can be work.
iisreset

Reference

Popular posts from this blog

VS2017-Build fail-FindDependenciesOfExternallyResolvedReferences

SQL Server pass parameter to Procedure

Jenkins- PowerShell include global config