Tuesday, June 9, 2009

Server 2008 Set IIS to listen on IP

>netstat -ano | find ":80 "
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
TCP 192.168.100.5:62474 64.235.44.58:80 ESTABLISHED 4704
TCP 192.168.100.5:62476 64.235.44.58:80 ESTABLISHED 4704
TCP 192.168.100.5:62536 95.52.5.92:80 ESTABLISHED 4704
TCP [::]:80 [::]:0 LISTENING 4

>netsh http add iplisten ipaddress=192.168.100.10

IP address successfully added

net stop http /y

net start w3svc

>netstat -ano | find ":80 "
TCP 192.168.100.5:62474 64.235.44.58:80 ESTABLISHED 4704
TCP 192.168.100.5:62476 64.235.44.58:80 ESTABLISHED 4704
TCP 192.168.100.5:62536 95.52.5.92:80 ESTABLISHED 4704
TCP 192.168.100.10:80 0.0.0.0:0 LISTENING 4

No comments:

Post a Comment