This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes network sniffing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "network sniffing" Watch "network sniffing" New topic

network sniffing

Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
I wonder if I can sniff the network traffic in Java. There are samples in Ethereal but they are all in C.
Thank you..
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

If you mean grabbing packets from a NIC in promiscuous mode -- no, not without some native code to talk to the hardware.

[Jess in Action][AskingGoodQuestions]
It is sorta covered in the JavaRanch Style Guide.
subject: network sniffing
Similar Threads
WA #1.....word association
Access Network drive through Java Application running as a service
sending a text message on linux network
Connecting to Database server
Weblogic start up slow problem