Package ortus.boxlang.runtime.util
Class NetworkUtil
java.lang.Object
ortus.boxlang.runtime.util.NetworkUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddress
Get the local hoststatic String
Get the local hostname of the machinestatic String
Get the local IP address of the machinestatic String
Get the local mac address of the machine
-
Constructor Details
-
NetworkUtil
public NetworkUtil()
-
-
Method Details
-
getLocalHost
Get the local host- Returns:
- InetAddress
- Throws:
UnknownHostException
-
getLocalIPAddress
Get the local IP address of the machine -
getLocalHostname
Get the local hostname of the machine -
getLocalMacAddress
Get the local mac address of the machine- Returns:
- The mac address of the machine or empty if not found
-