Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to intercept data exchanged between a server and client program?

807591Apr 27 2008 — edited Apr 27 2008
I'm looking for a way to listen to a port on my machine in order to get the data exchanged between a client program running on my machine and the server it connects to. I get the port that the client opens on my machine using netstat, and I tried using ServerSocket with that port # but it doesn't work, producing a "Address already in use" error.

So, is there any way for me to see what the client/server are exchanging by listening to a port on my machine? The client program I'm running is just a game I play.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2008
Added on Apr 27 2008
7 comments
492 views