I have two applications communicating on same machine (localhost) using socket. If application are on different machine I can use Wireshark. But how to capture packets on same machine.

I do not know on which port number application are communicating. Because I am using library calls and do not know lower level details.

We are having our application on Ubuntu and Windows XP.

有帮助吗?

解决方案

On Linux you can use netstat to determine the ports that your application are using. Then you can use Wireshark to capture on the loopback interface (just enter your own IP address if 127.0.0.1 dont work).

Refer to: https://stackoverflow.com/questions/1566234/ for capturing on Windows.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top