当您连接到本地网络时,您正在使用的设备将获得一个 IP 地址,从而允许其他设备找到它并与之通信,并表明该设备本身已正确通过身份验证。网络越大,使用的 IP 地址就越多,这可能会导致一些分配问题。
在大多数情况下,IP 地址分配由您的本地路由器决定,因此要在Windows 10 PC 上更改您的 IP 地址,您需要整体配置您的网络。或者,您可能想要设置静态 IP 地址,或更改所有设备的公共 IP 地址。要更改您的 IP,您需要执行以下操作。
为什么要在 Windows 上更改您的 IP 地址?(Why Change Your IP Address On Windows?)
您可能想要更改 IP 地址有几个原因。
通常,当您使用DHCP(DHCP)(用于分配 IP 地址的协议)进行连接时,本地网络路由器会为您的设备分配一个临时 IP 地址,从而为该地址提供临时租约。当租约用完时,需要续约,否则您可能会被分配一个新地址。
虽然这通常会自动发生,但有时也会出现问题。配置不当或繁忙的本地网络以及配置错误的设备可能会导致同一 IP 地址被分配两次,从而导致冲突。
如果发生这种情况,您可能希望设置一个静态 IP 地址,为您的设备提供一个永久地址。您需要对其他设备定期访问的设备执行此操作,例如家庭服务器或网络附加存储设备(network attached storage devices)。
这些都适用于本地网络,但您可能需要更改您的互联网服务提供商提供给您的 IP 地址。这可能会比较棘手,但如果您的ISP允许,有几种方法可以更改此地址。
配置网络路由器 DHCP 设置(Configuring Your Network Router DHCP Settings)
更改 IP 地址的最简单方法之一是配置网络路由器以分配新的 IP 地址。为此,您应该在路由器上配置DHCP设置,以不同方式分配 IP 地址。
例如,您可以为您的 Windows PC 设置静态分配。当您的设备连接时,您的路由器将始终通过使用您设备的 MAC 地址来识别它,为其分配相同的 IP 地址。
如果您不想这样做,您还可以更改本地路由器使用的 IP 范围。这意味着您的本地 IP 地址可能仍会不时更改,但地址范围会有所不同。例如,您的 IP 地址可能会从192.168.0.10更改为192.168.10.10。
为此,您需要访问路由器的管理页面。这将因设备而异,但通常可以通过在 Web 浏览器中键入http://192.168.0.1或http://192.168.1.1请查阅您的用户手册以获取在此处使用的正确用户名和密码。
更改DHCP设置的步骤也会有所不同,但您通常会在其自己的部分下找到DHCP设置(例如(DHCP)DHCP),而固定 IP 分配可以在地址分配(address allocation)或类似内容下找到。
释放 DHCP 租约并重置您的动态 IP(Releasing DHCP Lease and Resetting Your Dynamic IP)
您对路由器的DHCP(DHCP)设置所做的任何更改都可能需要您使用 Windows PowerShell释放或更新您的 Windows IP 地址。(release or renew your Windows IP address)
- 要从Windows PowerShell执行此操作,请右键单击开始(Start)菜单并单击Windows PowerShell (Admin)选项。
- 在PowerShell终端窗口中,键入ipconfig /release 以释放您的DHCP租约并断开连接。设置好新设置后,键入ipconfig /renew以重新连接。
如果您的路由器设置已正确更改,释放您的DHCP租约并重置您的 IP 将导致为您的设备分配一个新的 IP 地址。
在 Windows 10 上设置静态 IP 地址(Setting a Static IP Address On Windows 10)
静态 IP 地址可以通过固定的DHCP分配来实现,但您也可以在 Windows 10 设置中手动设置。如果您要直接连接到另一台设备,您可能需要这样做。
这也可能适用于您的本地路由器,但由于您的设备已经使用DHCP分配了 IP ,因此可能会发生 IP 冲突。在这种情况下,最好使用固定 IP 分配来代替。
- 要设置静态 IP 地址,请右键单击“开始(Start)”菜单并单击“网络连接(Network Connections )”选项打开网络设置。
- 在网络连接(Network Connections )设置菜单中,按更改连接属性(Change connection properties )选项。
- 在IP 设置(IP Settings)类别下,按编辑(Edit)选项。
- 将 IP 分配类型更改为Manual。启用IPv4或IPv6,然后键入您要应用的静态 IP 设置。静态IPv4 IP(IPv4 IP)地址的示例配置包括192.168.0.10用于 IP 地址,24用于子网前缀长度,192.168.0.1用于网关(指本地路由器)和首选DNS服务器。完成后单击(Click) 保存(Save)。
保存后,您的 IP 地址设置将自动应用。您可能需要使用上述步骤释放现有 IP 或重新启动 PC 以使更改完全生效。
在 Windows 10 上更改您的公共 IP 地址(Change Your Public IP Address On Windows 10)
您的公共 IP 地址(public IP address)是您的互联网服务提供商分配的地址,可让您访问互联网。这分配给您的调制解调器(通常与您的网络路由器结合使用,但并非总是如此),也允许所有其他连接的网络设备连接到互联网。
更改此地址有时可能很困难。您需要首先检查您的ISP(ISP)是否为您分配了动态(临时)或静态 IP 地址。如果您被分配了一个静态公共 IP,您的ISP将需要为您更改此设置。
对于动态 IP 地址,您通常可以通过关闭网络调制解调器一段时间来重置它。通过这样做,您将设备与ISP断开连接。
与您的本地网络一样,您的公共 IP 租约最终会用完,这意味着此时您可能会被分配一个新的 IP 地址。但是,这不能保证有效,您可能需要尝试另一种方法。
如果您的公共 IP 地址不会更改,您可以尝试其他方法。例如,使用虚拟专用网络(virtual private network),将在您在线浏览时隐藏您的公共 IP。
在 Windows 10 上配置网络(Configuring Your Network On Windows 10)
无论您是为您的网络(或更广泛的互联网用户)配置服务器,还是只想为其他设备腾出分配空间,在Windows 10上更改 IP 地址都是一个简单的过程,尽管大部分工作依赖于能够访问您的路由器以正确配置您的网络。
如果您的网络配置导致问题,您可能希望重置您的网络路由器(reset your network router)以清除平板并重新开始。IP 分配问题可能是您为网络连接问题而苦苦挣扎的原因,但幸运的是,有多种方法可以解决(fix unidentified network problems)Windows 10 上未识别的网络问题。
How To Change Your IP Address On Windows 10 (& Why You’d Want To)
When you connect to a local network, the device уou’re using is given an IP address, allowing other devices to find and commυnicate with it, as well as signifying that the device іtself has correctly authenticated. The larger the network, the more IP addreѕses that will be in use, which сan causе some allocation issues.
In most cases, IP address allocation is determined by your local router, so to change your IP address on a Windows 10 PC, you’ll need to configure your network as a whole. Alternatively, you may want to set a static IP address, or change your public IP address for all your devices. To change your IP, here’s what you’ll need to do.
Why Change Your IP Address On Windows?
There are a couple of reasons why you might want to change your IP address.
Typically, a local network router will allocate a temporary IP address to your device when you connect using DHCP (the protocol used to assign IP addresses), giving it a temporary lease to that address. When the lease runs out, it will need to be renewed, otherwise you could be allocated a new address.
While this usually happens automatically, problems can sometimes occur. A poorly configured or busy local network, along with misconfigured devices, might result in the same IP address being allocated twice, causing conflicts.
If this happens, you may wish to set a static IP address, giving your device a permanent address. You’ll want to do this for devices that are regularly accessed by other devices, such as home servers or network attached storage devices.
These all apply for local networks, but you may want to change the IP address given to you by your internet service provider. This can be trickier to do, but there are a few ways to change this address if your ISP allows it.
Configuring Your Network Router DHCP Settings
One of the easiest ways to change your IP address is to configure your network router to assign a new IP address. To do this, you should configure the DHCP settings on your router to assign IP addresses differently.
You could, for instance, set a static allocation for your Windows PC. When your device connects, your router will always assign the same IP address to it by using your device’s MAC address to identify it.
If you don’t want to do this, you could also change the IP range used by your local router. This means that your local IP address may still change from time to time, but the range of addresses will be different. Your IP address may change from 192.168.0.10 to 192.168.10.10, for instance.
To do this, you’ll need to access your router’s administration page. This will vary by device, but typically, many local routers can be accessed by typing http://192.168.0.1 or http://192.168.1.1 from your web browser. Consult your user manual for the correct username and password to use here.
The steps to change your DHCP settings will also vary, but you’ll typically find DHCP settings listed under its own section (eg. DHCP), while fixed IP allocations can be found under address allocation or similar.
Releasing DHCP Lease and Resetting Your Dynamic IP
Any changes you make to your router’s DHCP settings may require you to release or renew your Windows IP address using the Windows PowerShell.
- To do this from the Windows PowerShell, right-click the Start menu and click the Windows PowerShell (Admin) option.
- In the PowerShell terminal window, type ipconfig /release to release your DHCP lease and disconnect. With your new settings in place, type ipconfig /renew to reconnect.
If your router settings have been correctly changed, releasing your DHCP lease and resetting your IP will result in a new IP address being allocated to your device.
Setting a Static IP Address On Windows 10
A static IP address can be achieved through a fixed DHCP allocation, but you can also set this manually in your Windows 10 settings. You may want to do this if you’re making a direct connection to another device.
This may also work with your local router, but as your device is already being assigned an IP using DHCP, an IP conflict may occur. In this case, it’s better to use a fixed IP allocation to do this instead.
- To set a static IP address, open your network settings by right-clicking the Start menu and clicking the Network Connections option.
- In the Network Connections settings menu, press the Change connection properties option.
- Under the IP Settings category, press the Edit option.
- Change the IP allocation type to Manual. Enable either IPv4 or IPv6, then type the static IP settings you wish to apply. An example configuration for an static IPv4 IP address would include 192.168.0.10 for IP address, 24 for subnet prefix length, and 192.168.0.1 for gateway (referring to your local router) and preferred DNS server. Click Save once you’re done.
Once saved, your IP address settings will be applied automatically. You may need to release your existing IP using the steps above or restart your PC for the changes to take effect fully.
Change Your Public IP Address On Windows 10
Your public IP address is the address assigned by your internet service provider, giving you access to the internet. This is assigned to your modem (which is usually combined with your network router, but not always), allowing all other connected network devices to the internet, too.
Changing this address can sometimes be difficult. You’ll need to check if you’re assigned a dynamic (temporary) or static IP address by your ISP first. If you’re assigned a static public IP, your ISP will need to change this for you.
For dynamic IP addresses, you can usually reset this by switching your network modem off for a period of time. By doing this, you’re disconnecting your device from your ISP.
As with your local network, your public IP lease will eventually run out, meaning you may be allocated a new IP address at this point. However, this isn’t guaranteed to work, and you may need to try another method.
If your public IP address won’t change, there are other methods you could try. Using a virtual private network, will hide your public IP as you browse online, for instance.
Configuring Your Network On Windows 10
Whether you’re configuring a server for your network (or for wider internet users), or you just want to free up allocations for other devices, it’s an easy process to change your IP address on Windows 10, although much of the work relies on being able to access your router to properly configure your network.
If your network configuration is causing problems, you may wish to reset your network router to wipe the slate clean and start again. IP allocation issues might be why you’re struggling with network connection issues, but thankfully, there are several ways to fix unidentified network problems on Windows 10.