当前位置: 技术问答>java相关
如何利用SERVLET知道访问该SERVLET的客户端IP(在线)
来源: 互联网 发布时间:2017-04-04
本文导语: 如题,谢了先。 | out.println(request.getRemoteAddr()); out.println(""); out.println(request.getRemoteHost()); out.println("");
如题,谢了先。
|
out.println(request.getRemoteAddr());
out.println("
");
out.println(request.getRemoteHost());
out.println("
");
out.println("
");
out.println(request.getRemoteHost());
out.println("
");