Package ortus.boxlang.runtime.util
Class NetworkUtil
java.lang.Object
ortus.boxlang.runtime.util.NetworkUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddressGet the local hoststatic StringGet the local hostname of the machinestatic StringGet the local IP address of the machinestatic StringGet 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
-