美国的网络用户可以拥有日本的IP吗?
我目前正在为美国的客户实施 IP 到国家/地区的功能。问题是,当他使用美国的机器进行一些测试时,他网站的一些传入IP被识别为日本IP。我的日志文件显示这些 IP 以 150.xxx 开头,属于日本网络信息中心。他保证,当他检查这些机器的 IP 时,它们显示为来自美国。
更多信息:我使用 request.UserHostAddress (C#) 来检索客户端的 IP。
所以我的问题是:可能导致此问题的网络配置是什么?
先感谢您。
编辑:美国用户在美国使用日本公司的互联网服务的情况怎么样?
I'm currently implementing a IP-to-country feature for a client in the US. The problem is that when he does some tests by using machines in the US, some of the incoming IPs to his website are identified as Japanese IPs. My log file shows that those IPs start with 150.x.x.x and belongs to JAPAN NETWORK INFORMATION CENTER. He guarantees that when he checked IPs of those machines, they were shown as from the US.
More information: I use request.UserHostAddress (C#) to retrieve client's IP.
So my question is: what is the possible network configuration which can cause this issue?
Thank you in advance.
Edit: How about the situation in which a US user is using internet service of a Japanese company in the US?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
请询问他在哪里看到该信息,即他是如何进行地理定位的。
好吧,这是公共IP。这可以是最后一个对等点的 IP。可能是代理、VPN 路由器、(远程)办公室网关。
两种最常用的获得不同国家IP的方式:
1. 代理
2、VPN
Please ask where did he see that information, i.e. how did he geolocated.
Well, this is the public IP. This can be the IP of the last peer. May be a proxy, a VPN router, (remote) office gateway.
Two most commonly used ways to have IP from different country:
1. Proxy
2. VPN
该字段“返回客户端或发送请求的最后一个代理的完全限定名称”。客户端的代理链可能包括日本的主机,或者他们可能订阅日本 ISP。
That field 'returns the fully qualified name of the client or the last proxy that sent the request'. The client's proxy chain might include a host in JP, or they might subscribe to a Japanese ISP.
地理位置不准确。各种地理位置数据库中都存在错误,并且 IP 可能会更改(即,它们可以在不同的注册表之间重新分配)。因此信息可能会过时。
Geolocation is not exact. There are errors in various Geolocation databases, and IP's can change (that is, they can be reassigned between different registries). So information can be out of date.
问题是这样你只能获取客户端的名称或发送请求的最后一个代理的名称。请求可以从客户端到服务器有很多跳。
The problem is that way u only get the name of the client or the last proxy that sent the request.. a request can have many hops from client to server.