Getting Port on which client is listning from the client program.
All,
After the client connects to the server, is there any way by which I can know , on which port the client is recieving(on the client side) data from the server? Thanks in Advance, Rasanth |
use a tool like ntop or ethereal to listen to the traffic
|
Code:
netstat -plant | sed -n 's/[^:]*:\([0-9]*\) .*firefox.*/\1/p' I find "netstat -plant" an useful command for finding info on TCP connections (and easy to remember). |
All times are GMT -5. The time now is 08:00 PM. |