• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect network devices using java?  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to detect network devices using java alone without JNI.
[ June 16, 2008: Message edited by: Bear Bibeault ]
 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check java.net.NetworkInterface.
 
sonthosh devaraj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!