开发者

how to listen data from a port already running in my system in java

开发者 https://www.devze.com 2023-02-12 04:08 出处:网络
Hi I want to read the data from a port example 1234 which is always listening some application buffers data on that port. Now I have to read that port and print data which is buffered on that port in

Hi I want to read the data from a port example 1234 which is always listening some application buffers data on that port. Now I have to read that port and print data which is buffered on that port in java.

Thanks i开发者_开发问答n advance


If I understood your correctly you wish to read information sent to other application that is listening to specific port. If I am right you actually wish to implement sniffer in java.

In this case I recommend you to use JPcap: http://jpcap.sourceforge.net/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号