18

In Win2k3, I used httpcfg to tell IIS to listen to specific IP addresses on the server. I want to run Apache with VisualSVN Server on port 80 on another IP address but IIS7 binds to all IP addresses by default.

What utility for IIS7 controls the IIS7 bindings?

Michael
  • 173
  • 9

2 Answers2

22

I found the answer. There is a utility called netsh.

netsh http add iplisten ipaddress=xxx.xxx.xxx.xxx

By default there are no IP addresses on the list, so IIS7 will bind to all IP addresses. If you add one IP to the list, it will listen to just that IP or any IP added to the list. It is necessary to restart IIS7 for the change to take effect.

Edit:

To list the IP addresses, type the following command after the IP address is added:

netsh http show iplisten

The netsh utility returns the following information:

IP addresses present in the IP listen list: xxx.xxx.x.x
Michael
  • 173
  • 9
Brennan
  • 331
  • 1
  • 4
0

Just click the "Sites" folder in IIS manager and it lists all the bindings.

*:80 would be the bound to all IP's all unassigned

or

[hostheader] on *:80

Chad Grant
  • 589
  • 1
  • 6
  • 12