不同的人有可能拥有相同的公共ip地址吗?

在大多数情况下,我们都习惯于拥有一个唯一的公共IP地址,但如果事实并非如此,你会怎么做?到底是怎么回事?有鉴于此,今天的超级用户问答帖子可以帮助困惑的读者解开IP地址之谜。...

不同的人有可能拥有相同的公共ip地址吗?

在大多数情况下,我们都习惯于拥有一个唯一的公共IP地址,但如果事实并非如此,你会怎么做?到底是怎么回事?有鉴于此,今天的超级用户问答帖子可以帮助困惑的读者解开IP地址之谜。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

照片由尼古拉斯·诺娃(Flickr)提供。

问题

超级用户读者斯巴达想知道不同的人是否有可能拥有相同的公共IP地址:

As I understand it, two computers cannot have the same public (external) IP address unless they are connected via the same router. If they are connected via the same router, then they can have (share) the same public IP address yet have different private (local) IP addresses.

The Situation I Encountered

My friend and I both use the same Internet service provider. We have different user names and passwords, and independent connecti*** to our Internet service provider, yet we have the same public IP address! How is this possible? When we use Google to determine our IP address, we both get the same exact result, 112.133.229.29 (in my router it says 10.1.102.93, my friend’s router says 10.1.101.29).

I have installed an Apache web server on my computer and know that it can be accessed via the public IP address of my computer, but in my case I do not have a unique public IP address, so it is impossible for anyone to access my computer via http://112.133.229.29/index.html.

The friend I mentioned above is able to access my computer using this address: http://10.1.102.93/index.html, so I find myself wondering if we have some kind of common Internet service provider DNS.

If another friend of mine tries to access my computer via a different Internet service provider using the router-based link shown above (http://10.1.102.93/index.html), he is not able to access it.

How is my Internet service provider doing this? My requests to any server are pinned with my public IP address and the server responds to the request based on the that address.

不同的人有可能拥有相同的公共IP地址吗?

答案

超级用户贡献者Gestudio Cloud为我们提供了答案:

Well, as DavidPostill mentioned earlier, your Internet service provider is using NAT on their routers before routing your traffic to the Internet.

Basically, this means that you and the other clients inside your Internet service provider’s “service area” are in a big Metropolitan Area Network (MAN) and that works the same way your home’s router does in creating a Local Area Network (LAN), just on a much larger scale.

Why would your Internet service provider do this? Well, the answer is simple. They want and/or need to use a lower amount of public IPv4 addresses (probably because they have more customers than available public IPv4 addresses).

As you may know, the pool of free IPv4 addresses was exhausted a couple of years ago. Carriers that are growing are unable to get new IPv4 subnets unless they buy them from other Internet service providers closing down somewhere else.

The solution is to use IPv6 addresses. This obviously requires changing routers, changing configurati***, investing money and time, etc., so setting up a huge Metropolitan Area Network is just easier and faster for them.

You can call them and ask about getting a dedicated IPv4 address, but they will probably require an extra payment on your part just to have a dedicated IPv4 address for your computer/location.


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-09 19:45
  • 阅读 ( 214 )
  • 分类:互联网

你可能感兴趣的文章

公共ip(public ip)和私有ip(private ip)的区别

...配给网络上每个设备的唯一标识符。这使得网络上的每个不同设备都能被唯一地识别。有两类IP地址称为公用IP和专用IP。公共IP在整个互联网上是独一无二的,它允许设备连接到互联网上。为了管理唯一性,它们的分配通过一个...

  • 发布于 2020-10-22 21:26
  • 阅读 ( 504 )

用堡垒主机保护您的网络只需3个步骤

... 现在登录到您的路由器,并寻找动态DNS设置。这将不同的路由器,但如果你没有发现它潜伏在先进的设置,检查你的**商的用户手册。通常需要输入的四个设置是: ...

  • 发布于 2021-03-12 01:44
  • 阅读 ( 334 )

你的路由器慢吗?可能是你的nat桌

...,一个720p的YouTube视频在一个选项卡中打开,其他十几个不同网站的选项卡都在Edge浏览器中打开。 ...

  • 发布于 2021-03-13 10:52
  • 阅读 ( 305 )

如何将ip地址追踪到pc&如何找到自己的ip地址

...能看起来很笨拙(当然也充满了广告),但web服务提供了不同的工具来定位IP地址。通过输入,您可以找到任何IP地址的确切位置以及使用的操作系统(OS)、DNS、国家的IP地址范围、国家代码和国旗。综合地理定位仪和世界地图...

  • 发布于 2021-03-15 16:53
  • 阅读 ( 460 )

什么是静态ip地址?这就是你不需要的原因

... 有几个可能的私有IP地址范围,但对于大多数家庭用户来说,这将是192.168.*或10.0.*(其中*可以是任何内容)。 ...

  • 发布于 2021-03-18 11:25
  • 阅读 ( 324 )

为什么你不应该共享你的wi-fi密码

随着我们日常生活中越来越多的人上网,你可能会被其他人要求与他们共享你的Wi-Fi密码。虽然说“不”似乎很粗鲁,但允许某人访问您的路由器也会带来一些风险。 ...

  • 发布于 2021-03-20 20:22
  • 阅读 ( 261 )

什么是ip地址?它能显示你住在哪里吗?

... 当你调用一个IP查找工具的帮助时,事情会变得有点不同。它们有能力从IP地址中提取信息,并给你一个用户所在位置的估计。 ...

  • 发布于 2021-03-21 11:51
  • 阅读 ( 334 )

如何将imessage与airmessage和mac一起在android上使用

... 与文本信息不同,iMessage使用短信息协议发送文本,使用彩信发送图像,iMessage通过互联网发送。这使得它比标准的信息做得更多,也意味着你可以通过Wi-Fi(或移动数据)使用它。 ...

  • 发布于 2021-03-21 16:37
  • 阅读 ( 265 )

如何找到android或iphone的ip地址

... 根据您的Android版本,这些步骤可能略有不同。 ...

  • 发布于 2021-03-22 11:33
  • 阅读 ( 286 )

如何使用假ip地址并在网上屏蔽自己

...有点用词不当,意味着凭空创建一个新的IP地址。那是不可能的。你所能做的就是把你的IP地址隐藏在别人已经存在的IP地址后面。这称为IP掩蔽。 ...

  • 发布于 2021-03-23 08:37
  • 阅读 ( 352 )
jxdfrnb
jxdfrnb

0 篇文章