public class LinuxInetAddress extends Object
LinuxInetAddress class.
| Constructor and Description |
|---|
LinuxInetAddress() |
| Modifier and Type | Method and Description |
|---|---|
static InetAddress[] |
getAllLocal()
This method attempts to find all InetAddresses
for this machine in a
conventional way (via InetAddress).
|
static InetAddress |
getLocalHost()
Returns an InetAddress representing the address
of the localhost.
|
static InetAddress |
getLocalHostAddress(InetAddress intendedDestination)
getLocalHostAddress.
|
public static InetAddress getLocalHost() throws UnknownHostException
UnknownHostException - - if there is a
problem determing the addresspublic static InetAddress[] getAllLocal() throws UnknownHostException
UnknownHostException - - if there is a
problem determining addressespublic static InetAddress getLocalHostAddress(InetAddress intendedDestination) throws SocketException
getLocalHostAddress.
intendedDestination - a InetAddress object.InetAddress object.SocketException - if any.Copyright © 2016 iTransformers Labs. All rights reserved.