Skip to Main Content

Java APIs

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!

socket with proxy

843790Jul 16 2008 — edited Jul 29 2008
guys, I have a raw socket server on a local computer communicating with its client on the same machine. Unfortunately, I can not use Wireshark or Ethereal because they will only works from the local TCP point to the outside world. In my case, all is taken place locally and I want to capture those data between the local raw socket server and its client. I was told that there might be a possibility with using proxy class. Is this possible? If so, could you tell me how?

btw, there is a really cool software that does what I need:
http://www.sstinc.com/winsock.html
Unfortunately, this is only for windows :-), I need a universal solution where I can deploy my tools on any OS. Java is my answer.

Also, I can not split up the client and raw socket server onto separate machines either so I can use Wireshark. This is the way they're developed.

Oh another thing, I'd tried creating a java raw socket client which works but I can only attach to one socket port at a time at 1 TCP port. 1 TCP port is fine but I want to be able to sniff every socket ports, capturing every data packets going back and forward between the server and client. I don't know if proxy class works because I don't have a proxy anywhere installed.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2008
Added on Jul 16 2008
29 comments
298 views