在线玩多人游戏时,您可能需要将 NAT 类型从严格更改为开放。严格或适度的 NAT 类型可能会导致加入游戏聚会时出现网络问题,例如突然断开连接、延迟、难以举办比赛等。
您可以更改 Windows 上的 NAT 类型以缓解限制,从而获得更快、更可靠的网络连接。但更改 NAT 时,您必须平衡您的需求和潜在的安全风险。
网络地址转换 (NAT) 是路由器(和防火墙)中的一项功能,可将家庭和办公室设备中的私有 IPv4 地址转换为 ISP 分配给路由器的公共 IPv4 地址,反之亦然。 NAT 有助于解决全球可用公共 IPv4 地址数量有限的问题。
NAT 类型描述了网络连接的状态。三种 NAT 类型是严格、中等和开放。
您的默认 NAT 类型取决于您的路由器配置。如果您遇到与网络相关的问题,将 NAT 类型从“严格”或“中等”更改为“开放”会有所帮助。但是,请警惕与将 NAT 类型更改为开放相关的潜在安全风险。
无论您要使用 UPnP 方法还是端口转发来更改 NAT 类型,您都需要一个静态 IP 地址才能使其工作。由于大多数路由器分配动态 IP 地址,因此您必须为 Windows 设备手动配置静态 IP。
如果您已为设备分配了静态 IP 地址,请跳到以下步骤来更改 NAT 类型。如果没有,请按照以下步骤在 Windows 计算机上设置静态 IP 地址:
<code class="hljs ">ipconfig </code>
拥有静态 IP 后,您可以按照以下步骤更改 Windows 计算机上的 NAT 类型。
Network Discovery is a built-in Windows feature to help you allow other computers on the network to detect your computer. You can turn On or Off the Network Discovery mode on Windows 10 from the Settings apps. Here's how to do it on Windows 11:
You can change your NAT type to Open by enabling Universal Plug and Play (UPnP) in your router settings. This is the easiest way to change the NAT type, provided you can access your router configuration page. However, there are security concerns with the UPnP method, which hackers may exploit.
Note that the following steps apply to a TP-Link router. The process to enable UPnP may differ for routers from other manufacturers. Check your router's user manual or manufacturer knowledge base online for instructions.
Follow these steps to enable UPnP:
You can now close your router's web-based utility and check for any improvements in your network connectivity.
Alternatively, you can use the safer port forwarding method to change your NAT type for a specific game title or application. While the process is a little complicated compared to UPnP, port forwarding gives greater control over open ports and their usage with enhanced security.
To create a new port forwarding entry, you'll need to know the TCP or UDP ports used for your specific game. For example, Call of Duty: Black Ops Cold War uses the following ports:
<code class="hljs xml">TCP: 3074, 27014-27050UDP: 3074-3079</code>
To find your game's UDP and TCP ports, perform a web search with your game title for port forwarding. Often, the game developers include port information for the game on their website.
Alternatively, go to portforward, select your game, and then your router name and model using the given options. On the following page, scroll down to locate the specific ports for your game. Port Forward keeps a database of ports for games on multiple platforms and for different router makers.
To change NAT type using Power Forwarding:
该条目将保存在端口转发表中。您可以使用状态切换开关启用或禁用该条目。
除了端口转发之外,您还可以通过修改路由器的配置文件来更改 NAT 类型。然而,包括TP-Link在内的一些路由器制造商对配置文件进行了加密,使得进行必要的修改变得极其困难。
可能需要更改 NAT 类型才能解决与网络相关的问题。您可以启用 UPnP 或打开网络发现来缓解网络限制。但是,我们建议使用端口转发来减少网络限制,同时又不影响网络安全。
以上是如何在 Windows 11/10 上更改 NAT 类型的详细内容。更多信息请关注PHP中文网其他相关文章!