差异私有IP和公共IP [英] difference private IP and public IP

查看:134
本文介绍了差异私有IP和公共IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释一下为什么我有两个不同的IP地址吗?

Can anybody explain me why I got two different IP-addresses?

所以如果我输入终端ipconfig,我会得到我的网络信息,我的Ip-adress就像192.168。###。###。
所以我知道这是私人IP范围(私人IP)。

So if I type on terminal ipconfig I get my network information where my Ip-adress is like 192.168.###.###. So I know that this is in private Ip-range (private Ip).

但是如果我在myipadress之后谷歌我得到的结果是这样的:84.112。###。###。
我认为这是公共IP地址,在网站信息之后,ip-address(ISP)的位置距我当前位置约3.3公里...

But if I for example google after myipadress I got as result something like this: 84.112.###.###. And this is in my opinion the public Ip-adress and after the website information the location of the ip-address (ISP) is about 3.3 km away from my current location...

那么,如果有人问你的IP地址,你会回答什么?你会对他说哪一个?

So what would you answer if somebody asks after your Ip-address??? which one would you say to him?

第二个问题(或我自己的看法)如何在没有谷歌搜索的情况下确定我的公共IP?这背后的技术是什么?
我认为这类网站很容易,因为如果你去他们的网站,他们当然会在ip-frame中获得你的公共IP,因此这不是问题。

And the second question (or my own opinion) how can I determine my public ip without googling? what is technique behind that? I think thats easy for this kind of websites because they get of course your public ip in the ip-frame if you go on their website and therefore that is not a problem.

最后为什么我要拥有私人地址?我知道在网络/接口后面可以有大约255个设备。在这种情况下,我的调制解调器必须能够通过向每个人提供私人(动态)地址来向互联网授予多达255个设备。 IP地址的最后3个数字可能不同。

And finally why do I have a private address at all? I know behind a network/interface there can be about 255 devices. In this case my modem must be able to grant up to 255 devices to the internet by giving a private(dynamic) address to everyone. The last 3 numbers of the Ip-address can differ.

我可以说我的wlan-modem是路由器吗?

Can I say that my wlan-modem is a router?

我真的很困惑IP地址可以帮助我吗?

I'm really confused about the IP-adresses can anybody help me?

谢谢之前

推荐答案


  1. 你会告诉他们84地址,因为这是世界上可见的。

  1. You would tell them the 84 address as this is what is visible to the world.

您描述的wlan-modem(听起来像是在家庭网络上)充当您的互联网提供商分配给您的一个公共地址与您家中的许多设备之间的翻译。您通常可以将您的Web浏览器指向wlan-modem,它会告诉您其公共地址。您可以将浏览器指向 http://192.168.XXX.YYY ,其中XXX.YYY是您的计算机列出的内容它的门户。在大多数情况下,它的工作方式如下:
您的计算机地址为192.168.1.100,网关为192.168.1.1。

The wlan-modem that you describe (it sounds like you are on a home network) acts as a translator between the one public address that your internet provider assigns you and the many devices in your house. You can usually point your web browser at the wlan-modem and it will tell you its public address. You would point your browser to http://192.168.XXX.YYY where XXX.YYY is what your computer lists as its gateway. In most cases it works like this: your computer's address is 192.168.1.100, and it will have a gateway of 192.168.1.1.

为什么私人地址?有两个原因,首先是您的ISP有一定数量的公共地址可以发给用户(并且只想给你一个),其次是将你的计算机放在专用网络上而不能直接访问互联网(图片你的计算机在单向镜子后面)。所有非私有IP都像电话号码,它们是唯一的,没有其他人拥有您的号码,而私有IP地址更像是企业内部扩展。

Why private addresses? There are two reasons, first is your ISP has a limited number of public addresses that is can give out to users (and only wants to give you one), and second is that by putting your computer on a private network its not directly accessible to the internet (picture your computer behind a one way mirror). All non-private IP's are like phone numbers, they are unique, nobody else has your number, while private IP addresses act more like internal extensions in a business.

私有192.168.XXX.YYY与84.5.XXX.YYY范围有什么特别之处?除了一群人之外,没有什么可以说这套地址不是全球性的,可以私下使用。 https://tools.ietf.org/html/rfc1918

What's special about the private 192.168.XXX.YYY vs 84.5.XXX.YYY ranges? Nothing really, other than a group of people said this set of addresses isn't global and can be used privately. https://tools.ietf.org/html/rfc1918

wlan-modem是网络地址转换(NAT)设备的技术术语。这是一个位于私有和公共网络之间的设备,它会重写网络流量,使一切看起来像是来自一个公共地址。

The technical term for what your wlan-modem is "Network Address Translation" (NAT) device. This is a device that sits between a private and public network and rewrites network traffic to make everything look like it originated from one public address.

这篇关于差异私有IP和公共IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆