NAT (Network Address Translation) technology allows us to go to the Internet from our home through the same public IP address, in this way, the computers on the LAN will have a private IP address and can all connect to the Internet simultaneously, without the need to open ports manually in the outbound direction, because the router is in charge of managing all the connections, indicating in the NAT table the internal IP address of the device, the source port used and the destination port. When we are behind NAT, we may have problems with the consoles, especially if we are going to host games ourselves and we have to allow them to connect from the outside.
NAT types on PlayStation and Xbox
When we have a console like PlayStation or Xbox, if we look at the network status section we can see the type of NAT that we currently have on the console. Depending on the type of NAT we have, it will tell us if we are accessible through the Internet or if we have to open the ports on the router (Port forwarding) to avoid problems. Having the correct NAT is essential in the field of gaming, otherwise, we may not be able to connect to the servers to play online, or that the user experience is not as good as it should be. In the two consoles par excellence, PlayStation and Xbox, we have a total of three types of NAT, these NAT refer to how the console is connecting to the Internet.
NAT1, NAT type 1, or open NAT
In this type of NAT, the console connects directly to the Internet, that is, the console itself will have a public IP address, so all ports will be open since we will not have NAT of any kind on our router. The consoles allow basic network connection methods such as DHCP and PPPoE, but they are not capable of using VLANs to connect to fiber optic operators in Spain, so if you are going to connect your console directly to the Internet, you must remove this VLAN tag using a manageable switch, or that your operator's router allows you to put it in bridge mode by removing this tag from the VLAN, both methods are possible.
In general, it is very strange to have a NAT1 type NAT in our console, because that means that we will be connecting the console directly to the Internet connection, either to the ONT if it is fiber or to the cable modem. If you make this configuration, you will not be able to connect any other device to the Internet connection, and every time you want to play and obtain NAT1 you will have to remove the router and perform the configuration unless you have a connection specifically dedicated for the games that then you always have it configured and ready to go.
Logically, in this type of NAT1 it is not necessary to open ports, because by not having any type of NAT due to having a direct connection to the Internet and having the public IP of the connection, there are no ports to open.
NAT2, NAT type 2, or moderate NAT
In this type of NAT, the console connects to the Internet through a router, that is, we will have a private IP address of the local network, and the router will be the one who makes the connection to the Internet and we will be behind the NAT. If we have NAT2 it means that we have the ports open on the router redirected to our console, so we will not have problems regarding connectivity or hosting games. This type of NAT2 is the most common for any user, because we have a router that is responsible for establishing the Internet connection and allows us to connect all the devices in our home at the same time.
In this type of NAT, the console connects to the Internet through a router, that is, we will have a private IP address of the local network, and the router will be the one who makes the connection to the Internet and we will be behind the NAT. If we have NAT2 it means that we have the ports open on the router redirected to our console, so we will not have problems regarding connectivity or hosting games. This type of NAT2 is the most common for any user, because we have a router that is responsible for establishing the Internet connection and allows us to connect all the devices in our home at the same time.
NAT3, NAT type 3, or strict NAT
In this type of NAT, the console connects to the Internet through a router as in the previous case, that is, we will have a private IP address of the local network, and the router will be the one who makes the connection to the Internet and we will be behind of the NAT. If we have NAT3 it means that we do not have the ports open on the router, so we will have many connectivity problems, we will not be able to play online or we will do so with limitations in some games.
This type of NAT is the one that you should always avoid, it is the most common when we are behind a router and we do not have the ports open correctly. In the event that your operator has you in CG-NAT, this type of NAT3 is what you will have even if you open ports on your home router, because your home router will not have the public IP address that can be routed over the Internet, but rather the it will have the operator's own router. In this type of case, if you have CGNAT it is best to call the operator to take you out and provide you with a public IP, otherwise, you will not be able to play many games, chat with people in groups and you will have disconnections in random games, it is say, you will have a lot of problems.
How to open ports for the console
In the case that you have NAT1 you will not need to open ports, because the console will connect directly to the Internet and will have the public IP. In the case that you have NAT2, it is advisable to open the ports that you are going to use in the different online games, or to perform different actions such as group chat etc. If you have NAT3, you should open ports on the router to automatically switch to NAT2 and not have problems with online games.
The place where the ports are "opened" is in the router and towards the console, before opening ports, it is highly recommended to do one of these two actions:
-
Configure fixed IP in the console: this configuration must be done directly in the console, it consists of putting a fixed IP address in the "Network" menu, indicating an IP address of the router's subnet, using the typical subnet mask that is 255.255.255.0 and the default gateway which is the router's IP, usually 192.168.1.1. You will also have to indicate the DNS servers, it is highly recommended to use Google (8.8.8.8, 8.8.4.4) or Cloudflare (1.1.1.1 and 1.0.0.1).
-
Configure Static DHCP on the router: this configuration is done on the router, it consists of going to the "DHCP Server" section of the router. The DHCP server is the one that will be in charge of providing us with all the private IP addressing. In this section we will see a "Static DHCP" menu or something similar, it consists of putting the MAC address of our console (MAC of the Ethernet or WiFi card) together with the private IP address that we want. In this way, the router will always provide the console with the same private IP.
Once we have carried out this action of setting a fixed IP or configuring the router's "Static DHCP", we are going to see how to open the ports.
Open ports, port forwarding or port forwarding
If we do not want to have problems with our games, the ideal is to open ports to our console, and only open the ports we need to play correctly. For security reasons, it is never recommended to open more ports than will be used. All routers have a menu to open ports, this menu can be called in different ways:
-
Forwarding of ports
-
Port forwarding
-
Virtual Server or Virtual Server
-
Port forwarding
Depending on the router you have, you will have one menu or another. What you should keep in mind is that you will have to fill in all this information to open the ports:
-
Protocol: you must choose between TCP and UDP, generally all games use TCP.
-
Internal IP address: it is the IP address of the console, generally it is 192.168.1.X, the one you entered in the previous step.
-
External IP address: blank, we do not have to fill this in.
-
External IP port: it is the port that you must open to the console
-
Internal IP port: it must be the same as the previous one, there are routers that allow opening different internal and external ports. In the case of consoles, the external and internal must be the same.