Class NetworkUtil


  • public final class NetworkUtil
    extends java.lang.Object
    Defines the network utility.
    • Method Detail

      • getInstance

        public static NetworkUtil getInstance()
        Get the instance
        Returns:
        the instance
      • getHostIPAddress

        public java.lang.String getHostIPAddress()
        Get the ip address of the host
        Returns:
        the ip address of the host
      • getHostname

        public java.lang.String getHostname()
        Get the name of the host
        Returns:
        the name of the host