tcpdump and connection troubleshooting

Hello,

I have a client server application and the connection from client (redhat) becomes lost.

Is there a connection limit on Redhat Linux 4?
I want to use tcpdump to trace all packets between server and client: On the client side, I thought of running tcpdump. Is there a way to filter the tcpdump so that it displays only the traffic between the client and the remote server?

Do you have any other hints?

thanks.

There is no connection limit, what is your application, which protocol is using ? For the tcpdump, start tcpdump as root on the client side with :

tcpdump dst your-host-name

This will sniff all the packets from localhost to the destination server.

Hello sysgate,

the protocole used is RMI.
Can we narrow down the tcpdump you passed me so that it displays the traffic of a specific port?

thanks

talking about RMI, could there be a limitation on the tcp port number on my machine?

I don't think so, see the man pages for tcpdump and especially dst port and scr port.