Returns:
String representation of the IP address ("xxx.xxx.xxx.xxx")
static IPAddress getLocalAddress();
Get the computer's local IP address (from the LAN point of view)
Returns:
Local IP address
static IPAddress getPublicAddress();
Get the computer's public IP address (from the web point of view).
The only way to get a public address is to ask it to a
distant website ; as a consequence, this function may be
very slow -- use it as few as possible !
Returns:
Public IP address
static IPAddress LOCALHOST();
Local host address (to connect to the same computer).