Re: Services listening on all ports?
- From: "Mike Lowery" <selfspam@xxxxxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 07:33:25 -0800
I think httpcfg.exe will allow you to do what you want.
"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
news:egQ%230IqOHHA.4172@xxxxxxxxxxxxxxxxxxxxxxx
Yes IIS does bind to all addresses.
Apache does the same thing by default but if you add the address into the
connector line it will only bind to that address. That takes care of the
Apache issue.
But IIS will connect to all addresses even if you specifically set each
website to be a different address. In our case, if we set up 10 addresses
on the Nic card and set up our 4 web sites to access 4 of the address, it
will still grab all the addresses - preventing Apache from running. If we
manually start Apache to grab one of the addresses not used by IIS first
(from the Services window) and then start IIS - IIS will fail. The web
server will show as started but it won't handle any of the pages.
The solution, apparently (am in the process of testing and I believe it will
work) is a program from MS called httpcfg.exe which you can run to set up a
listener list. I assume what happens is that IIS will look for a listener
list and if it finds it, it will only bind to the addresses on the list. If
there is no list it will bind to all addresses. So in my case, I will put
all the address except the one that Apache will use and that will solve the
problem. It doesn't matter what order they start in as IIS won't even look
at the Apache address.
I am not sure what they did before W2K3 and XP SP2 as I believe it came out
then and I don't believe works for IIS5.
Wish me luck and thanks,
Tom
"Mike Lowery" <selfspam@xxxxxxxxxxxxxxxx> wrote in message
news:eBG4MbnOHHA.3544@xxxxxxxxxxxxxxxxxxxxxxx
"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
news:%23sLpdDnOHHA.3872@xxxxxxxxxxxxxxxxxxxxxxx
I thought that when you created a service to listen on a port you had to
give it an IP Address and Port Number to create a socket.
If you create a service, is it going to listen on all IP Addresses?
That depends on the service. You always have to specify a port number (or
use whatever is default) but it can either listen to all IP addresses (also
usually default) or a specific IP address. Most services (including IIS)
allow you to specify a specific address, as well as port, to listen on.
.
- Follow-Ups:
- Re: Services listening on all ports?
- From: tshad
- Re: Services listening on all ports?
- References:
- Services listening on all ports?
- From: tshad
- Re: Services listening on all ports?
- From: Mike Lowery
- Re: Services listening on all ports?
- From: tshad
- Services listening on all ports?
- Prev by Date: W2003 server share problem
- Next by Date: Re: Public IP address change
- Previous by thread: Re: Services listening on all ports?
- Next by thread: Re: Services listening on all ports?
- Index(es):
Relevant Pages
|