一、获取访问者的IP地址:
String sip = "";
try {
sip = (String) request.getRemoteAddr();
System.out.println("IP地址:" + sip);
} catch (Exception e) {
}
一、获取访问者的IP地址:
String sip = "";
try {
sip = (String) request.getRemoteAddr();
System.out.println("IP地址:" + sip);
} catch (Exception e) {
}