1. Virtual Private Servers (VPS)
FSH Knowledgebase
  • Game Guides
    • Minecraft
      • How to change MOTD for a Minecraft server
      • How to download your Minecraft server world
      • How to install a custom Minecraft modpack
      • How to Install Datapacks to your server
      • How to upload a custom Minecraft world
      • What is the difference between Spigot Paper and PurPur
      • Reducing Lag
        • Reduce Lag on ForgeMC server
        • Reduce Lag on FabricMC server
      • Common Issues
        • How to Fix Authentication servers are down Please try again later
        • Failed to check session lock
        • Exception Server Tick Loop
        • Server Connection Timed Out
        • Fixing the Connection timed out getsockopt Error in Minecraft
      • Managing your Server
        • How to Optimize Your Server
        • How to set a custom seed on your Minecraft Server
        • Using Chunker to Convert Minecraft Worlds Across Editions
        • Which Java version to use for Minecraft server
        • Add Add-ons to your Bedrock Server
        • How To EnableDisableManage Your WhitelistAllowlist
      • Plugins
        • Simple Voice Chat
        • Dynmap
        • Bluemap
        • Chunky
    • Palworld
      • How to add mods to your Palworld Server
      • How To Update A Palworld Server
      • Resetting a Player's Save on a Palworld Server
      • Finding Your Palworld Server in the Community Servers List
      • Changing the Egg Hatching Time on a Palworld Server
      • How to Edit Palworld Server Settings
      • How to Become Admin on Your Palworld Server
  • Panel Knowledgebase
    • Game Server Panel
      • How to reset your Game Panel Password
      • Uploading Files Via SFTP
      • Adding Dev Sub Users
    • Client Area
      • Affiliate Program
      • Discord Linking
      • How to Cancel A Service
      • How to upgrade or downgrade your service
  • Service Knowledgebase
    • Virtual Private Servers (VPS)
      • Change Window Server Password Locked Out
      • Creating Your VPS
      • Developers and your VPS
      • How to connect to your VPS from any Linux or Debian Distro
      • Logging into your VPS Windows
      • Opening Ports on a VPS
      • Resetting your VPS Password
      • SSH Client Setup
  1. Virtual Private Servers (VPS)

Opening Ports on a VPS

For Windows OS#

1.
To open ports on Windows, access "Windows Defender Firewall with Advanced Security." You can achieve this by utilizing the Windows search function or navigating to the control panel, both of which are accessible by pressing the Windows Key.
2.
Once you locate the "Windows Defender Firewall with Advanced Security" and reach the main page, proceed to access the "Inbound Rules" section located in the left column. On the right column, choose "New Rule..." as indicated below.
b64u-MDE5ZTFhMzQtMmQ5Yi03MDQzLWIyN2MtMTAyNTVkNDA1MThk.png
"Inbound Rules" -> "New Rule..."
3. Navigate to the "New Rule..." page and choose "Port." On the subsequent page, opt for either TCP or UDP based on your requirements. Select "Specific local ports" and input the desired port. On the following page, choose "Allow the connection." Finally, provide a name for the new port. This process applies similarly to "Outbound Rules." As an illustration, for FiveM, select TCP, and input ports as "30120, 40120," as demonstrated below.
b64u-MDE5ZTFhMzQtMmNhOC03YjI4LTkxNjktNWMwMjNlNzg2MTg4.png
FiveM Ports

For Ubuntu OS#

Install UFW: If UFW is not already installed on your system, run the following command to install it:
sudo apt-get install ufw
Check the status of UFW: Before making any changes, it's a good idea to check the current status of UFW. Run the following command:
sudo ufw status
Allow incoming connections: To allow incoming connections on a specific port, run the following command, replacing "port_number" with the desired port number (tcp or udp can be added to open that required protocol):
sudo ufw allow port_number/tcp
Check UFW rules: To view the rules that UFW is currently following, run the following command:
sudo ufw show added
Enable UFW: Once you have added the necessary rules, you can enable UFW by running the following command:
sudo ufw enable
That's it! You have successfully enabled and opened a port using UFW. Remember to check the UFW status regularly to ensure that it's configured as desired.
Modified at 2026-06-18 07:55:18
Previous
Logging into your VPS Windows
Next
Resetting your VPS Password
Built with