up vote 5 down vote favorite
4
share [g+] share [fb]

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 ports by default.

What utility for IIS7 controls the IIS7 bindings?

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

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

By default there are not IP addresses on the list so IIS7 will bind to all IP addressed. 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 affect.

link|improve this question
feedback

migrated from stackoverflow.com Jun 5 '10 at 6:15

This question came from our site for professional and enthusiast programmers.

2 Answers

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

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

By default there are not IP addresses on the list so IIS7 will bind to all IP addressed. 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 affect.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown