If you want to run a server or an application that requires internet access (like a FiveM server or any other application), opening ports in the firewall is an important step to allow traffic to enter and exit your device or server properly.
Inside the Control Panel, look for the option "Windows Defender Firewall" or simply "Firewall."

A new window will open titled Windows Defender Firewall with Advanced Security.

On the right side, select "New Rule...".

In the New Inbound Rule Wizard window, select "Port", then click Next.

After entering the number, click Next.

Click Next to proceed.

Public: Allows connections when the device is connected to a public network, such as a coffee shop.

You can also add a description if desired, then click Finish.

If you also need to allow outbound traffic (e.g., sending data through the port), you can follow these same steps with a slight modification:
After opening the port, ensure it is working by using your server or the application associated with the port to test the connection or functionality.
Opening ports through the Windows Firewall is crucial for running many applications and servers, including game servers like FiveM. By following the steps outlined above, you can easily allow traffic to enter and exit your device through the specified ports.
A tutorial has been created by "Labixe Host" *In The Arabic Languag* to further explain this process.
To access the video, click on the image below:
