Class NetworkUtil

java.lang.Object
ortus.boxlang.runtime.util.NetworkUtil

public class NetworkUtil extends Object
  • Constructor Details

    • NetworkUtil

      public NetworkUtil()
  • Method Details

    • getLocalHost

      public static InetAddress getLocalHost() throws UnknownHostException
      Get the local host
      Returns:
      InetAddress
      Throws:
      UnknownHostException
    • getLocalIPAddress

      public static String getLocalIPAddress()
      Get the local IP address of the machine
    • getLocalHostname

      public static String getLocalHostname()
      Get the local hostname of the machine
    • getLocalMacAddress

      public static String getLocalMacAddress()
      Get the local mac address of the machine
      Returns:
      The mac address of the machine or empty if not found