English 中文(简体)
how can we sniff traffic between two ports of same machine?
原标题:

I am testing a thick client which is connected to a database, need to sniff traffic b/w tcp port on same machine

问题回答

WireShark (formerly Ethereal) will work perfectly, if you re not familiar with it, it can be a little tricky on OSX, Windows it s no problem and Linux can be a headache. You can download it here http://www.wireshark.org/, and read a short-primer here - http://www.ipprimer.com/packets.cfm

Essentially there s a capture phase, and then you can work with the data – for your purposes you can live-capture and filter the output to the packets on the port/destination you care about, I ve used it many-a-time to debug dodgy home networking, or problems at the office.

Beware if using MySQL and localhost for example, this is a key-word for MySQL and it will infact use the socket instead.. which makes things a matter more complicated, you can circumvent this problem by always making sure to use 127.0.0.1 if working with MySQL. (Perhaps other software uses this convention?)

You can try some tools like WireShark.

Assuming you re on Windows:

I d split the client and server across two machines, either two real ones, or a VM with something VMWare. Then I d use Wireshark.





相关问题
Progress 4GL that calls a C function

I have been working in some C language function that is going to be called from a Progress 4GL application and I found myself with the following doubts: The C function uses malloc to dynamically ...

How can I display and manipulate record arrays?

Looking for the following forms functionality with INFORMIX 4GL?, ISQL with ESQL/C?, PROGRESS-4GL?, ORACLE? etc? I have a CRUD form which displays a customer[master] with all of their asociated ...

Transaction & Locks Problem

with in do transaction, i defined a label and in this label i am accessing a table with exclusive-lock.and at the end of label i have done all the changes in that table. bt now i am with in ...

Delphi connection to OpenEdge Progress-4GL Database

Folks: Has anyone had success connecting to a Progress-4GL database with Delphi?   I ve been unable to establish any connection with the ODBC driver provided by the vendor (Progress OpenEdge ...

Progress 4GL and .Net

I m trying to get data out of a Progress 4GL database, into SQL Server. Ideally, I d like to do this directly and within .NET, rather than through an ODBC driver since the ODBC driver gateway in ...

How do I do HTTP GET and POST in Progress/OpenEdge ABL?

The Progress docs spill plenty of ink on SOAP, but I m having trouble finding the example for a simple HTTP GET/POST with Progress ABL. How do I GET and POST strings to/from a URL? Can the URL be ...

热门标签