美国的网络用户可以拥有日本的IP吗?

发布于 2024-10-11 10:56:16 字数 284 浏览 2 评论 0原文

我目前正在为美国的客户实施 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

眉黛浅 2024-10-18 10:56:16

他保证当他检查IP时
在这些机器中,它们被显示为
来自美国。

请询问他在哪里看到该信息,即他是如何进行地理定位的。

我使用 request.UserHostAddress (C#) 来
获取客户端IP

好吧,这是公共IP。这可以是最后一个对等点的 IP。可能是代理、VPN 路由器、(远程)办公室网关。

两种最常用的获得不同国家IP的方式:
1. 代理
2、VPN

He guarantees that when he checked IPs
of those machines, they were shown as
from the US.

Please ask where did he see that information, i.e. how did he geolocated.

I use request.UserHostAddress (C#) to
retrieve client's IP

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

对风讲故事 2024-10-18 10:56:16

该字段“返回客户端或发送请求的最后一个代理的完全限定名称”。客户端的代理链可能包括日本的主机,或者他们可能订阅日本 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.

无法言说的痛 2024-10-18 10:56:16

地理位置不准确。各种地理位置数据库中都存在错误,并且 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.

缱绻入梦 2024-10-18 10:56:16

问题是这样你只能获取客户端的名称或发送请求的最后一个代理的名称。请求可以从客户端到服务器有很多跳。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文