public class NetUtils
extends cn.hutool.core.net.NetUtil
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_IPV6 |
Constructor and Description |
---|
NetUtils() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
isInnerIP()
判定是否为内网IP
私有IP:A类 10.0.0.0-10.255.255.255 B类 172.16.0.0-172.31.255.255 C类 192.168.0.0-192.168.255.255 当然,还有127这个网段是环回地址 |
bigIntegerToIPv6, buildInetSocketAddress, createAddress, getIpByHost, getLocalhost, getLocalHostName, getLocalhostStr, getLocalMacAddress, getMacAddress, getMacAddress, getMultistageReverseProxyIp, getNetworkInterface, getNetworkInterfaces, getUsableLocalPort, getUsableLocalPort, getUsableLocalPort, getUsableLocalPorts, hideIpPart, hideIpPart, idnToASCII, ipv4ToLong, ipv6ToBitInteger, isInnerIP, isInRange, isOpen, isUnknow, isUnknown, isUsableLocalPort, isValidPort, localAddressList, localIps, localIpv4s, localIpv6s, longToIpv4, netCat, netCat, parseCookies, ping, ping, toAbsoluteUrl, toIpList
public static final String LOCAL_IPV6
public static Boolean isInnerIP()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.