Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sockets

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
GB
Hello

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.

Any idea on how I do this?

Thanks
 
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).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top