Two Laptop Bag
The moose likes Sockets and Internet Protocols and the fly likes Retrieving IP address from a LAN Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Retrieving IP address from a LAN" Watch "Retrieving IP address from a LAN" New topic
Author

Retrieving IP address from a LAN

Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Hello everyone ..
..i am supposed to develop an IP tracer applicaiton for a LAN. That is:
my application is supposed to return the IP address corresponding to a computer name (which will be the input of my application).
For eg: there is a LAN which has 20 computers.Now if i enter any computer name (String argument) belonging to the network, how could i retrieve the IP address corresponding to that computer.

Looking forward to any sort of help
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8291

java.net.InetAddress


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Retrieving IP address from a LAN
 
Similar Threads
Getting information in the LAN
IP Address / Hostname validation
Capturing IP address of the client machine
How to get Client's IP address in Servlet
How to get own ip Address: