本文教你如何通过反复开关路由器来更改电脑的公用IP地址。如果你想更改私有IP地址,也就是连接到本地网络时分配给电脑的地址,那就需要在Windows上运行“命令提示符”,或者访问Mac上的连接设置。
步骤
方法 1 的 3:
更改公用IP地址
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/f\/fc\/Acquire-a-New-IP-Address-Step-1-Version-4.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-1-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/f\/fc\/Acquire-a-New-IP-Address-Step-1-Version-4.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-1-Version-4.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":544,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
1
找到设备的当前IP地址。为了知道IP地址更改是否成功,你需要知道设备的当前IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/d1\/Acquire-a-New-IP-Address-Step-2-Version-4.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-2-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/d1\/Acquire-a-New-IP-Address-Step-2-Version-4.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-2-Version-4.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
关闭设备。关闭要更改IP地址的电脑、手机或平板电脑。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/a6\/Acquire-a-New-IP-Address-Step-3-Version-4.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-3-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/a6\/Acquire-a-New-IP-Address-Step-3-Version-4.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-3-Version-4.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
拔掉调制解调器和路由器的电源插头。这样就会重启Wi-Fi。
- 如果调制解调器和路由器在同一个设备中,只需拔掉整个设备的插头。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/4d\/Acquire-a-New-IP-Address-Step-4-Version-3.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-4-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/4d\/Acquire-a-New-IP-Address-Step-4-Version-3.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-4-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
4
等待5分钟。这样应该足以让互联网服务提供商(ISP)为你的网络提供一个新的公用IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/c\/ca\/Acquire-a-New-IP-Address-Step-5-Version-3.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-5-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/c\/ca\/Acquire-a-New-IP-Address-Step-5-Version-3.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-5-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
5
将调制解调器插回电源。指示灯开始亮了。在进行下一步之前,最好等待调制解调器上的每个灯都是亮着或闪烁的。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/1\/14\/Acquire-a-New-IP-Address-Step-6-Version-3.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-6-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/1\/14\/Acquire-a-New-IP-Address-Step-6-Version-3.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-6-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
6
重新接上路由器。过一会儿后,路由器的灯就会开始闪烁,然后一直亮着。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/db\/Acquire-a-New-IP-Address-Step-7-Version-3.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-7-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/db\/Acquire-a-New-IP-Address-Step-7-Version-3.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-7-Version-3.jpg","smallWidth":460,"smallHeight":348,"bigWidth":728,"bigHeight":550,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
7
打开你的设备。重启完成后,设备应该会重新连接到互联网,不过你可能需要手动选择网络并连接。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/34\/Acquire-a-New-IP-Address-Step-8-Version-3.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-8-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/34\/Acquire-a-New-IP-Address-Step-8-Version-3.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-8-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
8
打开互联网浏览器。使用你选择的互联网浏览器来查看新IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/47\/Acquire-a-New-IP-Address-Step-9-Version-2.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-9-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/47\/Acquire-a-New-IP-Address-Step-9-Version-2.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-9-Version-2.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":544,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
9
在浏览器中输入“我的IP地址”。如果这里列出的IP地址与你之前看到的不同,那你已经成功更改了设备的IP地址。
- 如果看到的IP地址还是一样,你可能需要关闭路由器,时间要更久。试着关闭一整夜,然后第二天早上再打开。
方法 2 的 3:
在Windows上更改私有IP地址
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/d0\/Acquire-a-New-IP-Address-Step-10.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-10.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/d0\/Acquire-a-New-IP-Address-Step-10.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-10.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
1
打开“开始”菜单{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/0\/07\/Windowsstart.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/07\/Windowsstart.png\/30px-Windowsstart.png","smallWidth":460,"smallHeight":460,"bigWidth":30,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"}。点击屏幕左下角的Windows标志,或者按Windows键。
- 如果你使用的是Windows 8,将鼠标悬停在屏幕右上角,然后点击放大镜图标。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/f\/f1\/Acquire-a-New-IP-Address-Step-11.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-11.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/f\/f1\/Acquire-a-New-IP-Address-Step-11.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-11.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
在“开始”菜单中输入“命令提示符”。这样会在“开始”窗口中显示搜索结果列表。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/2d\/Acquire-a-New-IP-Address-Step-12.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-12.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/2d\/Acquire-a-New-IP-Address-Step-12.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-12.jpg","smallWidth":460,"smallHeight":347,"bigWidth":728,"bigHeight":549,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
右击“命令提示符”图标{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/6\/66\/Windowscmd1.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/66\/Windowscmd1.png\/36px-Windowscmd1.png","smallWidth":460,"smallHeight":383,"bigWidth":36,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"}。图标像一个黑盒子。右击这个图标会触发一个下拉菜单。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/1\/18\/Acquire-a-New-IP-Address-Step-13.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-13.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/1\/18\/Acquire-a-New-IP-Address-Step-13.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-13.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
4
点击以管理员身份运行。这个选项位于下拉菜单的底部附近。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/aa\/Acquire-a-New-IP-Address-Step-14.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-14.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/aa\/Acquire-a-New-IP-Address-Step-14.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-14.jpg","smallWidth":460,"smallHeight":348,"bigWidth":728,"bigHeight":550,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
5
出现提示时,点击是。这样就会确认你要打开“命令提示符”。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/8f\/Acquire-a-New-IP-Address-Step-15.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-15.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/8f\/Acquire-a-New-IP-Address-Step-15.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-15.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":541,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
6
输入ipconfig,然后按Enter。这条命令会显示你的当前IP信息。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/c\/c0\/Acquire-a-New-IP-Address-Step-16.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-16.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/c\/c0\/Acquire-a-New-IP-Address-Step-16.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-16.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
7
查看当前IP地址。它在“IPv4”地址的右侧;这个数字对应于本地网络上的特定设备。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/48\/Acquire-a-New-IP-Address-Step-17.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-17.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/48\/Acquire-a-New-IP-Address-Step-17.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-17.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
8
输入ipconfig /release,然后按Enter。这样就会释放IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/6\/60\/Acquire-a-New-IP-Address-Step-18.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-18.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/60\/Acquire-a-New-IP-Address-Step-18.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-18.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":541,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
9
输入ipconfig /renew,然后按Enter。这条命令会给设备分配一个新的IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/8e\/Acquire-a-New-IP-Address-Step-19.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-19.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/8e\/Acquire-a-New-IP-Address-Step-19.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-19.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
10
查看新IP地址。在“IPv4”地址右侧。如果这个数字与释放和更新IP地址之前的数字不同,那么设备的本地IP地址已经成功更改。
- 只有当电脑和其他设备都处于以太网连接时,这个过程才会生效。用这个方法更改公用IP地址是行不通的。
方法 3 的 3:
在Mac上更改私有IP地址
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/45\/Acquire-a-New-IP-Address-Step-20.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-20.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/45\/Acquire-a-New-IP-Address-Step-20.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-20.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
1
点击Apple菜单{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/f\/ff\/Macapple1.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/f\/ff\/Macapple1.png\/29px-Macapple1.png","smallWidth":460,"smallHeight":476,"bigWidth":29,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"}。屏幕左上角的苹果形图标。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/87\/Acquire-a-New-IP-Address-Step-21.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-21.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/87\/Acquire-a-New-IP-Address-Step-21.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-21.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
点击系统偏好设置。在Apple菜单的下拉菜单中可以看到这个选项。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/95\/Acquire-a-New-IP-Address-Step-22.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-22.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/95\/Acquire-a-New-IP-Address-Step-22.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-22.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":544,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
点击网络。打开“网络”窗口。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/6\/62\/Acquire-a-New-IP-Address-Step-23.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-23.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/62\/Acquire-a-New-IP-Address-Step-23.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-23.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":541,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
4
选择当前连接。从“网络”窗口左侧的窗格中进行选择。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/9e\/Acquire-a-New-IP-Address-Step-24.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-24.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/9e\/Acquire-a-New-IP-Address-Step-24.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-24.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":541,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
5
点击高级。这个按钮在窗口的右下角。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/35\/Acquire-a-New-IP-Address-Step-25.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-25.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/35\/Acquire-a-New-IP-Address-Step-25.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-25.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
6
点击TCP/IP选项卡。这个选项卡位于“高级”窗口顶部附近。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/b2\/Acquire-a-New-IP-Address-Step-26.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-26.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/b2\/Acquire-a-New-IP-Address-Step-26.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-26.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
7
查看“IPv4地址”数值。这个数值是Mac的当前IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/f\/fd\/Acquire-a-New-IP-Address-Step-27.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-27.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/f\/fd\/Acquire-a-New-IP-Address-Step-27.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-27.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
8
点击更新DHCP租约。这个按钮在IP地址右侧。点击后更新设备的当前IP地址。
-
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/6\/6a\/Acquire-a-New-IP-Address-Step-28.jpg\/v4-460px-Acquire-a-New-IP-Address-Step-28.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/6a\/Acquire-a-New-IP-Address-Step-28.jpg\/v4-728px-Acquire-a-New-IP-Address-Step-28.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
9
查看新IP地址。位于“IPv4”数值右侧。如果这个数字与释放和更新IP地址之前的数字不同,那么设备的本地IP地址已经成功更改。
- 只有当电脑和其他设备都处于以太网连接时,这个过程才会生效。用这个方法更改公用IP地址是行不通的。
小提示
- 如果你还是无法更改电脑的IP地址,尝试 使用虚拟专用网络(VPN)。
警告
- 更改IP地址,访问受限制的内容在你的国家可能是非法的。