aspose file tools
The moose likes Java in General and the fly likes How to detect network devices using java? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to detect network devices using java?" Watch "How to detect network devices using java?" New topic
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
    
  13

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to detect network devices using java?
 
Similar Threads
Detect Bluetooth Devices from PC
Check Network Device Up/Down
Question regarding system Architecture
Bluetooth piconet file transfer and editing
Detect Local System Info( both h/w and s/w) using JNI