Look what I found …

20 Aug, 2010

IIS and changing listening ip’s.

Posted by: admin In: IIS

We’re running a lot of Xen virtual hosts.It’s really easy to duplicate server for different function, for instance web.

I do it from time to time but I constantly forget how to get IIS up and running again after the hostname / ipchange since the websites doesn’t start.

Therefore I have done a quick  guide on howto change the IIS listening ip’s.

First, here’s the error code you get when you have an IIS that had socket pooling disabled and then had it’s ip changed.

Event

Fire up a command prompt.

Use this command to check the current listening ip addresses.

netsh http show iplisten.

To add your new ip adresses use :

netsh http add iplisten ipaddress=X.X.X.X

And to delete the old ones :

netsh http del iplisten ipaddress=X.X.X.X

This will then take effect after you issue an iisreset.

I hope this can be helpful to somone other than me out there.

Tags:

No Responses to "IIS and changing listening ip’s."

Comment Form

About

This is my place. I can do whatever I want here.. Nice.. :-)
My idea is to publish some of the things I come across while searching for solutions that comes in handy in my line of work.
I hope someone out there will be interested..