|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutilities.network.IPUtils
public class IPUtils
A utility class to find out certain bits of information about the network status/capabilities of the current host.
| Constructor Summary | |
|---|---|
IPUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
getExternalAddress()
Returns the external IP address of the local host if possible, if not it returns the loopback address |
static byte[] |
getExternalAddress(java.net.InetAddress host)
Returns the external IP address of the specified host if possible, if not it returns the loopback address |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPUtils()
| Method Detail |
|---|
public static byte[] getExternalAddress()
public static byte[] getExternalAddress(java.net.InetAddress host)
host -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||