How to configure IIS not to listen all IP addresses

Sometimes you may want to configure IIS not to listen all IP addresses. To do this:

Run regedit. Go to:

HKLM\System\CurrentControlSet\Services\HTTP\Parameters

If the “ListenOnlyList” key does not exists, create a new multi-string value named “ListenOnlyList” (without quotes). Double click on it, and enter the IP addresses that you want to ISS to listen.

After that, run cmd. Run these commands:

net stop http (Y)
net start http
iisreset

That’s it.