| getHostAddress |
([String host]) |
yoix.net |
| |
Returns the IP address of
host,
which should be a name that can be resolved by DNS or an IP address,
or the local host if no argument is given,
as a string in the Internet standard dot notation
a.b.c.d.
The result will be
NULL
if the host cannot be found.
| |
| Example: |
The program,
import yoix.net.*;
import yoix.stdio.*;
printf("%s\n", getHostAddress());
writes the IP address of your local host on standard output.
| | |
| Return: |
String
| | |
| See Also: |
getAddress,
getAllByName,
getHostName,
getInterfaceAddress,
getInterfaceAddresses,
isAnyLocalAddress,
isLinkLocalAddress,
isLoopbackAddress,
isMCGlobal,
isMCLinkLocal,
isMCNodeLocal,
isMCOrgLocal,
isMCSiteLocal,
isMulticastAddress,
isReachable,
isSiteLocalAddress
|
|
Yoix is a registered trademark of AT&T Inc.
|