Four Seasons Hosting
Client Portal Server StatusDiscord
  • Overview
  • FAQ
    • 🖥️VPS Hosting
    • 🎮Game Server
    • 🌐Web Hosting
    • 💰Billing
    • ❓General Questions
    • 🖥️Dedicated Server
    • Server Hardware
  • Panel Knowledge Base
    • 💼Client Area
      • Discord Linking
      • How to pay with Cashapp
      • 🤑Affiliate Program
      • How to Cancel A Service
      • How to upgrade/downgrade your service
    • 🎮Game Server Panel
      • Staff Request
      • Minecraft Features
      • How to change the game?
      • How to reset your Game Panel Password
      • Creating A Schedule
      • Your Server Node
      • Uploading Files Via SFTP
      • Adding Dev/ Sub Users
      • Subdomain
      • Server Importer
  • Service Knowledge Base
    • 🕸️Web Hosting
      • Common Website Errors
      • Four Seasons Name Servers (DNS)
    • ☁️Virtual Private Servers
      • Creating Your VPS
      • Logging into your VPS (Windows)
      • Developers and your VPS
      • How to connect to your VPS from any Linux/Debian Distro
      • Opening Ports on a VPS
      • Resetting your VPS Password
      • SSH Client Setup
      • Change Window Server Password (Locked Out)
    • 💲Reseller
    • 🖥️Dedicated Servers
      • Managing Your Server
      • Creating Backups
  • Game Knowledge Base
    • Ark
      • ARK: SA GameUserSettings.ini
      • ARK: SA Game.ini
      • ARK: SA Command /Server Startline
      • ARK: Survival Ascended VPS Set Up
    • 🚘FiveM
      • Set up a FiveM Server on a VPS
    • 🧊Minecraft
      • How much ram do I need for my Minecraft server?
      • Helpful Info!
        • What is the difference between Spigot, Paper, and PurPur?
        • Using .sh to start your server
        • How to Install Datapacks to your server?
      • Plugins
        • Bluemap
        • Chunky
        • Dynmap
        • Simple Voice Chat
      • Managing your Server
        • How to set a custom seed on your Minecraft Server
        • How to Set a Custom Minecraft Server Icon
        • Changing Your Version
        • Add Add-ons to your Bedrock Server!
        • Running Version 1.17 or below
        • Using Chunker to Convert Minecraft Worlds Across Editions
        • How to Optimize Your Server
        • How To Enable/Disable/Manage Your Whitelist/Allowlist?
      • Common Issues
        • Server Connection Timed Out
        • Exception Server Tick Loop
        • Failed to check session lock
        • How to Fix: Authentication servers are down. Please try again later
      • Reducing Lag
        • Reduce Lag on FabricMC server!
        • Reduce Lag on ForgeMC server!
    • 🐣Palworld
      • How to direct connect to your Palworld Server
    • Soul Mask
      • Soul Mask How-to's
        • How to change the game mode on your Soulmask Server
        • How to Update Your Soulmask Server
        • How to Change Soulmask Server Settings
      • Admin Commands Guide
    • 🪨Rust
    • Sons of the Forest
      • Configuring custom settings on your Sons of the Forest server
      • Setting up a Sons of the Forest server
    • Valheim
      • How to Add Mods to Your Valheim Server
      • How to fix Valheim server saying "missing world"
      • How to add admins on your Valheim server
      • Updating your Valheim Server
      • Debugging basic errors on your Valheim server
    • V Rising
      • How to Configure V Rising Server Settings
    • Arma Reforger
      • Server Requirements
      • Complete config.json guide
Powered by GitBook
On this page
  • For Windows OS
  • For Ubuntu OS

Was this helpful?

  1. Service Knowledge Base
  2. Virtual Private Servers

Opening Ports on a VPS

Last updated 6 months ago

Was this helpful?

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.

  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.


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.

☁️
"Inbound Rules" -> "New Rule..."
FiveM Ports