
百度上的 request.getRemoteAddr();只能获取到内网地址,并不是真实 IP 地址。。
1 SoloCompany 2015-10-26 21:15:15 +08:00 请 google RemoteIpValve 只能帮你到这了 |
2 smithtel 2015-10-29 16:41:46 +08:00 String ip = request.getHeader("x-forwarded-for"); |
3 watsonQiu OP @SoloCompany 谢谢,毕竟谷歌 |