# 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

-

## migrated from stackoverflow.comDec 30 '09 at 18:44

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

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

-

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.

And another

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

Cheers,

Mike

-

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.

-

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?

-
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. – samsmith Dec 31 '09 at 5:29
OK, I think I know what process to stop now based on the process ID I got. I thought that the task manager showed a list of running processes, but when I bring up the task manager I do not see any process ID's. How do I find the right process to stop? Here is a snapshot of the task manager: i67.photobucket.com/albums/h292/Athono/taskmgr.gif here is a closer view: i67.photobucket.com/albums/h292/Athono/taskmgr-1.gif – Xarzu Dec 31 '09 at 19:00