|
Java™ by example!
|
|
|
How do I get the IP address of a host?
The InetAddress class is able to map between hostnames and IP addresses. Following app demonstrates the use:
Running it with
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|