Wednesday, January 19, 2011

What do you do in IIS if you get an error when trying to start your default web site and it says that it cannot be started because another web site may be using the same port?

What do you do in IIS if you get an error when trying to start your default web site and it says that it cannot be started because another web site may be using the same port?

For some reason I have IIS 6 and IIS 7 on the same machine. I seem to be unable to start IIS 7 but it seems I can in IIS 6. Yet, I am able to see c:\inetpub\wwwroot\iisstart.htm but I am not able to see a viable http://localhost

  • You need to stop one of them, or set the other to listen to a different port.

    How to set the port for IIS Services

    From Pekka
  • It sounds like your setup is borked. On the other hand, Skype, among other programs grabs port 80 by default (or it certainly used to).

    Try netstat -abn for more info about what is using the port.

    From spender
  • Pekka has one solution but another solution to this problem which I think is more common is to use HTTP host headers. Host headers allow multiple sites to be hosted on one port (commonly 80 for http) using one public IP address. If you are interested in how they work you should check out google for HTTP header design and IIS host headers. I've provided a link to get you started how ever for the short term.

    Here is a link that shows how to set them up in IIS 6.

    http://www.visualwin.com/host-header/

    And another

    http://support.microsoft.com/kb/190008

    Cheers,

    Mike

  • trying netsat-abn produced a lot of output. What exactly am I looking for and what am I supposed to do once I find it?

    samsmith : Look for "80" in the netstat output. Best is to pipe netstat to a text file, then search the text file. You are looking for the app that has 80 hooked.

0 comments:

Post a Comment