First Timer: How to setup your FiveM Server
🏗️ Phase 1: Foundation & Infrastructure
Before you can install your scripts, you need a high-performance environment. These guides cover the acquisition and initial deployment of your hardware.
Step 1: Ordering Your Hardware Choose the right plan for your player base. High-performance Manila-based servers ensure the lowest latency for local players.
Step 2: Initial System Setup Once your order is active, you must select an operating system (Linux or Windows) and initialize the virtual environment.
Step 3: Gaining Remote Access Learn how to log in to your server using SSH for Linux or Remote Desktop (RDP) for Windows to begin installing your FiveM artifacts.
👉 Getting Inside Your Server: A Simple Guide to SSH and Remote Desktop
🛡️ Phase 2: Security & Networking
FiveM servers are frequent targets for network attacks. Use these tools to ensure your server stays online during a DDoS attempt.
Step 4: Configuring the Firewall Access the Layer Portal to apply specific mitigation presets like FiveM TCP (Default Port 30120), FiveM UDP (Default Port 30120), FiveM LB (Default Port 30120) and txAdmin (Default Port 40120) to your server's ports.
Step 4.5 (For Windows): Open Port your FiveM/txAdmin Ports via Windows Firewall:
Open the Start Menu, search for Windows Defender Firewall with Advanced Security, and open it.
In the left sidebar, click Inbound Rules.
In the right sidebar, click New Rule....
Follow the wizard for each port/protocol combination:
Rule Type: Port.
Protocol and Ports: Choose TCP or UDP, then enter the port (e.g.,
30120).Action: Allow the connection.
Profile: Ensure Domain, Private, and Public are all checked.
Name: Give it a clear name like "FiveM TCP".
Repeat this process until you have rules for 30120 TCP, 30120 UDP, and 40120 TCP.
🎮 Phase 3: FiveM Optimization
Once your server is running, these final steps improve the "Quality of Life" for your players by making the server easier to join and faster to load.
Step 5: Creating a Memorable Connection Link Replace your numeric IP with a custom domain like
yourname.fivem.phso players can find you easily.Step 6: Speeding Up Player Load Times Use a Cache Server to deliver your server assets (clothing, cars, maps) through a global CDN, significantly reducing the "Loading Assets" wait time.

