David
Wed Jan 17 22:38:35 CST 2007
It's because the SMTP binding is for 0.0.0.0:25 -- which means "traffic
to port 25 for all IP of the server goes to one application process
that opened it as 0.0.0.0:25".
If the binding was 10.0.3.5:25 for one application, another application
can bind to 10.0.3.10:25.
What IP and Port are your IIS websites and Tomcat websites bound to?
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
tshad wrote:
> "tshad" <tscheiderich@ftsolutions.com> wrote in message
> news:OMH4EklOHHA.3544@TK2MSFTNGP03.phx.gbl...
> > "Daniel Crichton" <msnews@worldofspack.com> wrote in message
> > news:%239CZTTjOHHA.4940@TK2MSFTNGP03.phx.gbl...
> >> tshad wrote on Tue, 16 Jan 2007 13:36:38 -0800:
> >>
> >>> As I was reading this, it seems that it is specifically tied to IIS to
> >>> allow it to listen to multiple ports. It says it binds to all ports by
> >>> default (not sure what this means) and in II6 this is allowed to be
> >>> disabled so that services that that need a specific port can get it.
> >>> Not sure if this is an issue or not.
> >>
> >> By default IIS6 will bind to all IP addresses on the machine on the ports
> >> it uses for handling requests. The article shows how to change this so it
> >> only binds to the IP addresses that you tell httpcfg that you want IIS to
> >> bind to. So say you have 5 IP addresses on the machine, and want IIS6 to
> >> bind to just 4 of them, add all 4 using httpcfg. Start up IIS and it will
> >> bind to just those 4, so you should then be able to configure Apache to
> >> bind to the 5th IP address. In this way IIS can handle requests on port
> >> 80 on the 4 IP addresses it is configured to listen on, and Apache can
> >> handle requests on port 80 on the 5th.
> >
> > Oh. I misread it. I thought it said it bounded to all PORTS not all IP
> > addresses. That makes more sense.
> >
> > So you are saying that an application CAN listen on the same port as
> > another application if the IP addresses are different? So you can listen
> > on port 25 (when SMTP is installed) with a different application if the IP
> > address is different than the one SMTP is using?
>
> I just did a test where I added an address to my server. The address was
> 10.0.5.2 and I added 10.0.5.10 to the same Nic card.
>
> I did a 'Netstat -an |find /i "listening" ' to see what ports were open:
>
> Microsoft Windows [Version 5.2.3790]
> (C) Copyright 1985-2003 Microsoft Corp.
>
> C:\Documents and Settings\tfs>netstat -an | find /i "listening"
> TCP 0.0.0.0:25 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:1030 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:1041 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:1043 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:1047 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:1062 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:5001 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:8443 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:10000 0.0.0.0:0 LISTENING
> TCP 0.0.0.0:30246 0.0.0.0:0 LISTENING
> TCP 10.0.3.5:139 0.0.0.0:0 LISTENING
> TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING
>
> C:\Documents and Settings\tfs>
>
> I then did a telnet 10.0.5.2 portnumber for each port and then did the same
> for 10.0.5.10 and all were open for both IP addresses.
>
> This would seem to say that the ports are not tied to the IP Address but to
> the server itself (ie. one port 25 for the server regardless of how many IP
> addresses are there).
>
> If this is the case, it seems that you cannot run IIS and Tomcat on the same
> port even if they are tied to a different address.
>
> Is this the case?
>
> Thanks,
>
> Tom
> >
> > Thanks,
> >
> > Tom
> >>
> >> Dan
> >>
> >
> >