I have 2 applications which talk to each other using sockets. I know the port number of each application. What I need to do is write an application that can listen in on the communications between the applications.
My guess (and I'm no expert) is that you'd need your application to operate the NIC in 'promiscuous' mode, and listen in on the communications that way. For a simpler method, you can get a Windows version of tcpdump (I know it exists, but don't have a link), and run that while your apps are running - be warned though, that if you're on a busy network, you'll be parsing through a LOT of data - if possible, run your apps on a single box disconnected from the network (or on 2 boxes only connected to each other).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.