获取外网的IP地址用java语言实现的当用户登录的时候,我可以获取到他登录的电脑的外网IP地址该怎么做[解决办法]String ip1 = request.getHeader("x-forwarded-for");String ip2 = request.getRemoteAddr();if ( ip1 == null || ip1.length() < 4 ) ip1 = request.getHeader("INTEL_SOURCE_IP");[解决办法]一楼说的对