Faz isso ai:
<%
String ip = request.getHeader(“X-FORWARDED-FOR”);
if (request.getHeader(“X-FORWARDED-FOR”) == null) {
ip = request.getRemoteAddr() ;
}
%>
Ip: <%= ip%>
Faz isso ai:
<%
String ip = request.getHeader(“X-FORWARDED-FOR”);
if (request.getHeader(“X-FORWARDED-FOR”) == null) {
ip = request.getRemoteAddr() ;
}
%>
Ip: <%= ip%>
funcionou valeu!