Package org.alfresco.util
Class IPUtils
- java.lang.Object
-
- org.alfresco.util.IPUtils
-
public class IPUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description IPUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getRealIPAddress(String ipAddress)
Returns the "real" IP address represented by ipAddress.
-
-
-
Method Detail
-
getRealIPAddress
public static String getRealIPAddress(String ipAddress) throws UnknownHostException
Returns the "real" IP address represented by ipAddress. If ipAddress is a loopback address it is converted into the host's underlying IP address- Parameters:
ipAddress
- String- Returns:
- String
- Throws:
UnknownHostException
-
-