Class IPUtils


  • public class IPUtils
    extends Object
    • Constructor Detail

      • IPUtils

        public IPUtils()
    • 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