Class IPUtils


  • public class IPUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IPUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRealIPAddress​(java.lang.String ipAddress)
      Returns the "real" IP address represented by ipAddress.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IPUtils

        public IPUtils()
    • Method Detail

      • getRealIPAddress

        public static java.lang.String getRealIPAddress​(java.lang.String ipAddress)
                                                 throws java.net.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:
        java.net.UnknownHostException