public class IPTools extends Object
Constructor and Description |
---|
IPTools() |
Modifier and Type | Method and Description |
---|---|
static String |
getLocalHostName()
获取本机 机器名称
|
static String |
getLocalIp()
获取本机IP地址(适用于单个网卡时)
|
static List<String> |
getLocalIps()
获取本机的所有IP地址(适用于多个网卡时)
|
Copyright © 2018. All rights reserved.