posted 17 years ago
Perhaps you didn't know that your machine can have more than one IP address. For example if you have an Ethernet cable connection and a wireless network connection, they have different IP addresses.
Anyway, there's a getAllByName(host) method in the InetAddress class that might help you.