request.getRemoteAddr = 零:0:0:0:0:0:0:1

request.getRemoteAddr 0:0:0:0:0:0:0:1做IP地址过滤时,非代理获取客户端ip时,用http://localhost:8080/

request.getRemoteAddr = 0:0:0:0:0:0:0:1
做IP地址过滤时,非代理获取客户端ip时,用http://localhost:8080/aapname访问应用程序,通过如下代码获取客户端ip为0:0:0:0:0:0:0:1:

ServletActionContext.getRequest().getRemoteAddr();  

原因是跟操作系统有关系,我用的是windows7操作系统,支持IP V6格式,所以输出0:0:0:0:0:0:0:1;