Need a program to let me view socket connection data

Started by
4 comments, last by Antheus 16 years, 8 months ago
I two programs on my computer that communicate to each other through sockets. Does anyone know of a way to view the data they are sending back and forth?
Advertisement
Ethereal or tcpdump tends to be the two most common tools.

To make it is hell. To fail is divine.

I believe both of those only work for connects across servers. I need to get the local socket data.
At least on my test box (FreeBSD 6.2 on a sparc64), tcpdump successfully dumps contents of packets on the loopback interface lo0.

To make it is hell. To fail is divine.

http://www.wireshark.org/
For Windows, I'd simply write a little proxy server, then fix the application endpoints as needed. The entire server was some 200 lines of Java code, so it really isn't much work.

The reason for this is, that loop-back is often optimized, so it handles network calls directly, without passing them through network API.

This topic is closed to new replies.

Advertisement