Java TCP Socket Sniffing [英] Java TCP Socket Sniffing
本文介绍了Java TCP Socket Sniffing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用TCP套接字在同一台计算机(localhost)上使用特定端口号在服务器和客户端程序之间传递数据。
I am using TCP sockets to communicate data between a server and client program using a specific port number on the same computer (localhost).
我需要一个软件可以捕获通过该套接字发送/接收的数据吗?
I need a software that can capture the data being sent/received through that socket?
(或)
什么是最简单的方法从Java中的指定端口嗅探数据包?
What's the simplest way of sniffing packets from a specified port in Java?
推荐答案
我建议使用Wireshark。它易于使用并可在许多平台上运行。
I suggest using Wireshark. It's easy to use and runs on many platforms.
这篇关于Java TCP Socket Sniffing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文