public class IpUtil extends Object
| Constructor and Description |
|---|
IpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<IpProvider> |
getIpProviders() |
static String |
retrievePublicIP()
It retrieves the Public IP trying multiple providers (if needed)
|
public static List<IpProvider> getIpProviders()
public static String retrievePublicIP() throws IpRetrievalException
IpRetrievalException - if no IP can be retrieved from the available providers or an invalid IP is returnedCopyright © 2015. All rights reserved.