Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Sockets and Internet Protocols and the fly likes JPCap - cant capture TCP packets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "JPCap - cant capture TCP packets " Watch "JPCap - cant capture TCP packets " New topic
Author

JPCap - cant capture TCP packets

Dcf fan
Greenhorn

Joined: Aug 28, 2012
Posts: 1
I'm trying to implement a network sniffer using JPCap library.

The problem is, it is capturing only UDP packets of other nodes. The TCP packets are not being captured. (Actually TCP packets of my computer ONLY are being sniffed)

This is the code I'm using:


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JPCap - cant capture TCP packets