destination port changes every time
- From: abdelkader belahcene <abelahcene@xxxxxxxxx>
- Date: Thu, 10 May 2012 18:03:48 +0100
*Hi,
I wrote a client/server programs, the server listen on port 5000 and
of course the client connected on that port , I check the communication via
the sniffex.c program from pcap (adapting something) , I noticed that
destination port ( used by the client) is not always the same and
completely different from the source port.
Here is an output example:
Device: lo Filter expression: ip
Packet number 1:
From: 127.0.0.1
To: 127.0.0.1
Protocol: TCP ---->The client send a request
Src port: 49611 ---->The port is randomly choosed by
the client ??
Dst port: 5000
Packet number 2:
From: 127.0.0.1
To: 127.0.0.1
Protocol: TCP -----------> The answer from the server
Src port: 5000
Dst port: 49611
When I stopped the client and ran it again I got another Src port from the
client
The question is : why the port opened by the client is not the same, and
takes one randomly ??
thanks for help
*
- Follow-Ups:
- Re: destination port changes every time
- From: Dan Ritter
- Re: destination port changes every time
- Prev by Date: Re: OT: More about GPG signing
- Next by Date: Re: Debian Administrator's Handbook
- Previous by thread: Dynamic Traffic Shaping
- Next by thread: Re: destination port changes every time
- Index(es):
Relevant Pages
|