Hi there, I am facing one problem while findingout all host machines in the LAN. I want to display all available hosts in the list. Can anybody help me to find all machines (host names/ip addresses) in the local area network Ganapathy [ May 16, 2003: Message edited by: S. Ganapathy ]
I don't think this is possible short of going through JNI, but I'd love to be corrected on this. You need to be able to send and recieve ARP packets to query a LAN. Since Java does not support raw sockets, as Peter says, you will either have to provide your own native library or find one that's already been built. A few months back, Michael Ernest posted a link to a Java ARP library, but I can't seem to find it by searching here or thru Google. We get so many questions on this subject, if I can find the time, I may just try to create one myself.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher