Class NetworkUtil
- java.lang.Object
-
- com.github.toolarium.network.util.NetworkUtil
-
public final class NetworkUtil extends java.lang.ObjectDefines the network utility.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHostIPAddress()Get the ip address of the hostjava.lang.StringgetHostname()Get the name of the hoststatic NetworkUtilgetInstance()Get the instance
-
-
-
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
-
-