public final class NetworkUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getLocalMachineIP()
Get the IP address of current machine.
|
static boolean |
isIPAddr(String ipAddress)
Checks if the specified string is a valid IP address.
|
public static boolean isIPAddr(String ipAddress)
ipAddress - the string to checkpublic static String getLocalMachineIP()
null if unable to get the IP addressCopyright © 2025. All Rights Reserved.