| Author |
How to detect network devices using java?
|
sonthosh devaraj
Greenhorn
Joined: Jun 16, 2008
Posts: 2
|
|
How to detect network devices using java alone without JNI. [ June 16, 2008: Message edited by: Bear Bibeault ]
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
Hi, Welcome to JavaRanch! Want to qualify that? What kind of devices? What do you want to know about them, exactly? Is this on one network segment? A subnet? The Internet? Windows network?
|
[Jess in Action][AskingGoodQuestions]
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Check java.net.NetworkInterface.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
sonthosh devaraj
Greenhorn
Joined: Jun 16, 2008
Posts: 2
|
|
|
Thank you roberts for the response. But i just to want to capture some network packets to analyze. Can we do that in java?
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Not without JNI, unless if the packets are sent to your Java application. Otherwise, you'll have to go low-level (read: with JNI) into the network interface to intercept all packets.
|
 |
 |
|
|
subject: How to detect network devices using java?
|
|
|