public class NetworkUtil extends Object
| Constructor and Description |
|---|
NetworkUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIpAddress(javax.servlet.http.HttpServletRequest request)
获取请求主机IP地址,如果通过代理进来,则透过防火墙获取真实IP地址;
|
public static String getIpAddress(javax.servlet.http.HttpServletRequest request)
request - IOExceptionCopyright © 2020. All rights reserved.