不同的人有可能擁有相同的公共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
  • 閱讀 ( 48 )
  • 分類:網際網路

你可能感興趣的文章

公共ip(public ip)和私有ip(private ip)的區別

...給網路上每個裝置的唯一識別符號。這使得網路上的每個不同裝置都能被唯一地識別。有兩類IP地址稱為公用IP和專用IP。公共IP在整個網際網路上是獨一無二的,它允許裝置連線到網際網路上。為了管理唯一性,它們的分配透過...

  • 發佈於 2020-10-22 21:26
  • 閲讀 ( 43 )

完整的windows網路故障排除指南

...點。設定單個裝置要容易得多,但存在單個故障點。擁有不同的裝置是大多數大公司選擇的方法。雖然安裝會變得非常複雜,但它的可伸縮性要高得多。讓我們看看網路執行所需的一些服務。 ...

  • 發佈於 2021-03-11 18:35
  • 閲讀 ( 43 )

什麼是quad9 dns?它比opendns好嗎?

... 在釋出時,Quad9在全球70個不同地點擁有DNS伺服器叢集,計劃到2017年底增至100個。Baykal詳細闡述了每個叢集至少有三臺伺服器,但是“在一些關鍵領域,比如芝加哥,我們在負載均衡器後面有五個...

  • 發佈於 2021-03-11 21:19
  • 閲讀 ( 48 )

用堡壘主機保護您的網路只需3個步驟

... 現在登入到您的路由器,並尋找動態DNS設定。這將不同的路由器,但如果你沒有發現它潛伏在先進的設定,檢查你的**商的使用者手冊。通常需要輸入的四個設定是: ...

  • 發佈於 2021-03-12 01:44
  • 閲讀 ( 56 )

vpn無限:一個合理的價格,堅實,可靠的vpn

...優先事項和需要。這就是為什麼我們要花時間來涵蓋各種不同的VPN服務。我們對最好的vpn的總結證明了我們的多功能方法。 ...

  • 發佈於 2021-03-13 06:25
  • 閲讀 ( 40 )

如何將ip地址追蹤到pc&如何找到自己的ip地址

...能看起來很笨拙(當然也充滿了廣告),但web服務提供了不同的工具來定位IP地址。透過輸入,您可以找到任何IP地址的確切位置以及使用的作業系統(OS)、DNS、國家的IP地址範圍、國家程式碼和國旗。綜合地理定位儀和世界地...

  • 發佈於 2021-03-15 16:53
  • 閲讀 ( 61 )

什麼是靜態ip地址?這就是你不需要的原因

... 有幾個可能的私有IP地址範圍,但對於大多數家庭使用者來說,這將是192.168.*或10.0.*(其中*可以是任何內容)。 ...

  • 發佈於 2021-03-18 11:25
  • 閲讀 ( 42 )

為什麼你不應該共享你的wi-fi密碼

隨著我們日常生活中越來越多的人上網,你可能會被其他人要求與他們共享你的Wi-Fi密碼。雖然說“不”似乎很粗魯,但允許某人訪問您的路由器也會帶來一些風險。 ...

  • 發佈於 2021-03-20 20:22
  • 閲讀 ( 55 )

如何將imessage與airmessage和mac一起在android上使用

... 與文字資訊不同,iMessage使用簡訊息協議傳送文字,使用彩信傳送影象,iMessage透過網際網路傳送。這使得它比標準的資訊做得更多,也意味著你可以透過Wi-Fi(或移動資料)使用它。...

  • 發佈於 2021-03-21 16:37
  • 閲讀 ( 44 )

如何找到android或iphone的ip地址

... 根據您的Android版本,這些步驟可能略有不同。 ...

  • 發佈於 2021-03-22 11:33
  • 閲讀 ( 52 )
jxdfrnb
jxdfrnb

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章