Re: Changing listener ports
- From: "Mark Perschbacher" <MarkPerschbacher@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Jun 2005 16:16:06 -0700
Thanks for the information, one last question. Why would a server create
ephemeral ports for one connection, but use a single port for another? The
two clients on our side connecting to this server are very similar, Dell
Poweredges.
"Arkady Frenkel" wrote:
> No, that nature of TCP stack
> Arkady
>
> "Mark Perschbacher" <MarkPerschbacher@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> message news:C88501CB-BDF2-4FF0-BC93-15128C3C2C10@xxxxxxxxxxxxxxxx
> > Is there a way to disable the use of ephemeral ports?
> >
> > "Alexander Nickolov" wrote:
> >
> >> Read about ephemeral ports. In TCP terms it's a client, even
> >> though on higher application level it may be considered a server.
> >> So you have a TCP client that connects to a TCP server and
> >> your TCP client uses ephemeral ports that keep increasing
> >> until at some point they wrap over.
> >>
> >> --
> >> =====================================
> >> Alexander Nickolov
> >> Microsoft MVP [VC], MCSD
> >> email: agnickolov@xxxxxxxx
> >> MVP VC FAQ: http://www.mvps.org/vcfaq
> >> =====================================
> >>
> >> "Mark Perschbacher" <MarkPerschbacher@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> >> message news:828FC3C4-8C89-4141-A2C5-D4C1D7EF1E7E@xxxxxxxxxxxxxxxx
> >> > So you are saying that the server side is creating these temp. local
> >> > ports?
> >> >
> >> > "Farooque Khan" wrote:
> >> >
> >> >> It must be incrementing the local port, not the port on which the
> >> >> server
> >> >> is
> >> >> listening. For each connection that a client makes, the server will
> >> >> create
> >> >> sockets with temporary local ports which keep incrementing. These will
> >> >> be
> >> >> releived (in TIMED_WAIT state) after some specific time.
> >> >>
> >> >> --
> >> >>
> >> >> -Farooque
> >> >>
> >> >>
> >> >> "Mark Perschbacher" <Mark Perschbacher@xxxxxxxxxxxxxxxxxxxxxxxxx>
> >> >> wrote
> >> >> in
> >> >> message news:279A1A22-EEF1-44F5-8929-D181EFC28998@xxxxxxxxxxxxxxxx
> >> >> > We are attempting to send data from a Win 2003 server to a UNIX
> >> >> > system,
> >> >> > and
> >> >> > have no problem connecting with TCP/IP. Data is passed fine, then
> >> >> > at
> >> >> > some
> >> >> > point, our server starts incrementing the listening port number up.
> >> >> > Even
> >> >> > though netstat -an shows us as ESTABLISHED, on the remote server
> >> >> > side,
> >> >> > they
> >> >> > show three connections, the most recent port number ESTABLISHED, and
> >> >> > the
> >> >> > other two in TIMED_WAIT. Why do you think our server is changing
> >> >> > port
> >> >> > numbers?
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
.
- Follow-Ups:
- Re: Changing listener ports
- From: Arkady Frenkel
- Re: Changing listener ports
- References:
- Changing listener ports
- From: Mark Perschbacher
- Re: Changing listener ports
- From: Farooque Khan
- Re: Changing listener ports
- From: Mark Perschbacher
- Re: Changing listener ports
- From: Alexander Nickolov
- Re: Changing listener ports
- From: Mark Perschbacher
- Re: Changing listener ports
- From: Arkady Frenkel
- Changing listener ports
- Prev by Date: Re: GetAdapapters info asking for a wrong-size buffer?
- Next by Date: Re: Bidirectional RPC communication, [callback] or client string binding?
- Previous by thread: Re: Changing listener ports
- Next by thread: Re: Changing listener ports
- Index(es):
Relevant Pages
|