您的公共IP 地址(IP address)是从您的网络外部可见的地址。除了非常特殊的原因,大多数人不需要知道他们的IP 地址(IP address),但幸运的是,它非常容易弄清楚。
您可能需要您的公共或外部IP 地址(IP address),当您远离家乡远程访问您的计算机时,或者当您从FTP 服务器(FTP server)共享文件,或将您的网络连接到自定义DNS 服务(DNS service)时。
无论出于何种原因需要知道您的 IP 地址,都有多种方法可以找到它。您可以使用任何东西,从简单的网站到计算机的命令行实用程序(command line utility)或路由器来查找您的IP 地址。(IP address)
IP 地址查找网站(IP Address Finding Websites)
找到您的外部IP 地址(IP address)
的最简单方法绝对是使用专门用于此目的的网站。这些网站使用自己的工具来定位您的IP 地址(IP address),只需单击一下即可帮助您。
以下是可以找到您的公共IP 地址(IP address)的几个网站的列表:
提示:其中一些网站还显示其他有用信息,例如您的 Web 浏览器、您的本地 IP 地址,甚至您的实际位置。(Tip: Some of these websites show other helpful information,
too, such as your web browser, your local IP address, and even your physical
location.)
从命令行查找您的 IP 地址(Find Your IP Address From the Command Line)
Windows 用户可以使用命令提示符(Command Prompt)中
的DNS 请求(DNS request)来定位他们的公共IP 地址(IP address)。只需(Just)打开命令提示符(Command Prompt)并执行以下命令:
nslookup myip.opendns.com. resolver1.opendns.com
您将首先看到来自DNS 服务器(DNS server)的结果,然后在底部看到另一组结果。您的IP 地址(IP address)列在名称为 myip.opendns.com(Name: myip.opendns.com)的行下方。
如果您在运行此命令时遇到任何类型的错误,请尝试仅执行opendns.com。(删除myip.),它应该给你 opendns.com 的IP 地址(IP address)。然后使用myip 再次运行该命令。(myip. )部分在前面。
可以使用类似的命令在PowerShell中查找您的公共(PowerShell)IP 地址(IP address):
$tmp =Invoke-WebRequest -URI http://myip.dnsomatic.com/
输入该命令后,输入$tmp.Content
以查看结果。
如果您使用的是Linux,请从终端窗口尝试以下命令:
dig +short myip.opendns.com
@resolver1.opendns.com
从路由器或调制解调器中找到 IP 地址(Locate the IP Address From Your Router or Modem)
您的路由器和调制解调器(router and modem)位于您的设备和互联网之间,因此它需要知道您的ISP分配给您的网络的IP 地址。(IP address)这意味着您可以使用自己的设备来查找您的公共IP 地址(IP address)。
从调制解调器或路由器(modem or router)中查找外部IP 地址(IP address)并不像使用上述方法那么容易,但绝对有可能。这种方法的问题在于,您需要知道如何登录路由器才能查看所有设置,这是许多人通常不会做的事情,因为他们不知道自己的密码或路由器的IP 地址(IP address)。
大多数路由器可以通过http://192.168.1.1 URL访问,但其他路由器使用不同的私有IP 地址(IP address)。知道路由器的正确地址后,您需要访问路由器的登录信息,以便访问管理控制台。
如果您已经做到了这一点,那么找到 IP 地址应该相对容易。您可以查看Device Info、
Management、Setup、WAN等部分。IP 地址(IP address)本身可能称为WAN IP 地址、外部地址(External Address)、公共 IP(Public IP)或类似的东西。
如何阻止您的 IP 地址更改(How to Stop Your IP Address From Changing)
由于ISP 分配(ISPs assign) IP 地址(IP address)的方式,您的公共IP 地址(IP address)可能会在将来的某个时候发生变化。这意味着您使用上述方法之一找到的地址将与您在几周后甚至更早找到的地址不同。
虽然您作为您的ISP的客户,在技术上无法强制您的IP 地址(IP address)保持不变,但您可以实施所谓的动态DNS 服务(DNS service)来实质上产生这种效果。
动态DNS 服务(DNS service)会为您的 IP 地址分配一个名称,同时更新您的IP 地址(IP address)记录。每次地址更改时它都会这样做,有效地为您提供一个主机名(如网站URL),您可以使用它来引用您的公共IP 地址(IP address)。
一旦您为自己分配了主机名,您就可以随时通过该名称访问您的网络,而这实际上是通过公共IP 地址(IP address)访问您的网络。同样(Again),您无需在每次ISP更改新(ISP)IP 地址(IP address)时都知道新 IP 地址,因为该服务会为您做到这一点。您只需要主机名!
您可以更改或隐藏您的 IP 地址吗?(Can You Change or Hide Your IP Address?)
默认情况下,几乎任何人都可以看到您的公共IP 地址。(IP address)您访问的每个网站都可以看到它,您的ISP知道它是什么,并且从街上窥探您网络的人可以弄清楚。隐藏或屏蔽您的IP 地址(IP address)的最佳方法是什么?
VPN或虚拟专用网络是迄今为止防止他人窥探您的公共IP 地址(IP address)的最简单、最有效的方法。VPN所做的是创建从您的网络到VPN 服务(VPN service)的隧道,从而防止您的ISP 或(ISP or anyone)您本地网络上的任何人监视您。
这样做会迫使您所在的网站看到 VPN 的地址而不是您自己的地址,这基本上隐藏了您在互联网上的身份。也就是说,只要VPN 服务(VPN service)不向任何人透露您的IP 地址(IP address),这就是您想要选择受信任的VPN 提供商(VPN provider)的原因。
有很多VPN(VPNs)可供选择,包括免费和付费。有些具有比其他的更多或更好的功能和隐私,因此请务必花时间研究最好的VPN服务,然后再选择一个来隐藏您的IP 地址(IP address)。如果需要,请确保在继续订阅之前检查VPN 连接是否实际加密。(VPN connection)
查看我们的VPN应用程序列表,您可以在桌面或移动设备上使用这些应用程序来保护您的隐私。
How to Find Your Public IP Address
You public IP address is the addreѕs visible from outside your network. Most people don’t need to know their IP address except for verу specific reasons, but fortunately, it’s extremely easy to figure out.
You might need your public, or external IP address, when you’re remoting into your computer when away from home, or when you’re sharing files from your FTP server, or connecting your network to a custom DNS service.
No matter the reason for needing to know your IP
address, there are multiple ways to find it. You can use anything from a simple
website to find your IP address to your computer’s command line utility or your
router.
IP Address Finding Websites
The easiest way to find your external IP address
is most definitely to use a website dedicated to doing just that. These
websites are using their own tools to locate your IP address, and they’re just
one click away from helping you.
Here’s a list of several websites that can find
your public IP address:
Tip: Some of these websites show other helpful information,
too, such as your web browser, your local IP address, and even your physical
location.
Find Your IP Address From the Command Line
Windows users can use a DNS request within
Command Prompt to locate their public IP address. Just open Command Prompt and
execute this command:
nslookup myip.opendns.com. resolver1.opendns.com
You’ll first see results from the DNS server but then another set of results at the bottom. Your IP address is listed below the line that says Name: myip.opendns.com.
If you get any kind of error when running this command, try doing just opendns.com. (remove the myip.), which should give you the IP address of opendns.com. Then run the command again using the myip. part in the front.
A similar command can be used to find your
public IP address in PowerShell:
$tmp =Invoke-WebRequest -URI http://myip.dnsomatic.com/
After entering that command, enter $tmp.Content
to see the result.
If you’re using Linux, try this command from a
terminal window:
dig +short myip.opendns.com
@resolver1.opendns.com
Locate the IP Address From Your Router or Modem
Your router and modem is what sits between your
device and the internet, so it needs to know the IP address your ISP has
assigned to your network. This means you can use your own device to find your
public IP address.
Finding the external IP address from a modem or router is not as easy as using the methods above, but it’s definitely possible. The problem with this method is that you need to know how to log in to your router to see all the settings, which is something many people don’t normally do because they don’t know their password or the router’s IP address.
Most routers can be accessed via the http://192.168.1.1 URL, but others use a different private IP address. Once you know the correct address for your router, you need access to the router’s login information so that you can access the administrative console.
If you’ve made it this far, finding the IP
address should be relatively easy. You can look in a section like Device Info,
Management, Setup, WAN, etc. The IP address itself might be called WAN IP
address, External Address, Public IP, or something of that sort.
How to Stop Your IP Address From Changing
Because of the way ISPs assign IP addresses, your public IP address will likely change at some point in the future. This means that the address you find using one of the methods above, will not be the same address you find a few weeks from now, or maybe even sooner.
While you, as a customer of your ISP, can’t technically force your IP address to stay the same, you can implement what’s called a dynamic DNS service to essentially create that effect.
A dynamic DNS service assigns a name to your IP
address, while at the same time updating its record of what your IP address is.
It does this each time the address changes, effectively giving you one hostname
(like a website URL) that you can use to refer to your public IP address.
Once you’ve assigned yourself a hostname, you
can access your network at any time through that name, which in turn is
actually accessing your network through the public IP address. Again, you don’t
need to know your new IP address each time your ISP changes it because the
service does that for you. All you need is the hostname!
Can You Change or Hide Your IP Address?
By default, your public IP address is visible by
nearly anyone. Each website you visit can see it, your ISP knows what it is,
and people snooping on your network from the street can figure it out. What’s
the best way to hide or mask your IP address?
A VPN, or virtual private network, is by far the easiest and most effective way to keep prying eyes from seeing your public IP address. What a VPN does is create a tunnel from your network to the VPN service, thereby preventing your ISP or anyone on your local network from spying on you.
What this does is force the website you’re on to see the VPN’s address instead of your own, which basically hides your identity on the internet. That is, so long as the VPN service doesn’t reveal your IP address to anyone, which is why you wanted to pick a trusted VPN provider.
There are lots of VPNs to choose from, both free and paid. Some have more or better features and privacy than others, so be sure to take your time researching the best VPN services before choosing one to hide your IP address. If you need to, make sure to check that the VPN connection is actually encrypted before moving forward with a subscription.
See our list of VPN apps you can use to protect your privacy while on a desktop or mobile device.