Re: obtaining ip addresses
Wednesday, October 24, 2001 09:43 PM
Network management programs like Tivoli, OpenView, ManageIT, etc. typically either put the NIC into "promiscuous mode" and listen for some time for all traffic on the segment, OR they ping-scan a range of addresses you specify to see who responds. The first method only works up to your segment's gateway router and requires low-level hardware access, which Java typically does not have. The second approach is easy to do in Java but if your company, university, etc. prohibits scanning then you could get yourself in a bit of trouble. If it's OK to do, then take a look at the java.io section in Java Examples in a Nutshell or search online for "Java ping".