I would like to find out how to get IP address of the client, that is visiting my web pages.
Content of JSP page:
<%
out.print( request.getRemoteAddr() + "<br>");
out.print( request.getRemoteHost() );
%>
Output:
0:0:0:0:0:0:0:1
0:0:0:0:0:0:0:1
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…