How to configure iis 7 to listen on a single ip address or specific ip addresses

Windows Server 2008/IIS 7:

1. Open a command prompt and type “netsh”.

2. Type “http”.

3. Type “show iplisten”

By default, iis listens on all ip addresses. If you don’t see anything, then iis is listening on all ip addresses

4. Use this command to add an specific ip address that iis should listen on.
Type “add iplisten ipaddress=172.21.7.18”

5. You can also delete an IP from this list.
Type “delete iplisten ipaddress=172.21.7.18”

6. Type “show iplisten”

You should see the ip addresses you added.

7. Type exit

8. Restart IIS to apply these changes. from the command window, type:
iisreset

This entry was posted in IIS, Microsoft, windows. Bookmark the permalink.

Comments are closed.