Hosting
Choosing the right hosting solution is crucial for your FiveM server’s performance, reliability, and cost-effectiveness. This guide covers provider options, setup procedures, and migration strategies.
Hosting Types
VPS (Virtual Private Server)
Virtual Private Servers provide dedicated resources within a shared physical server.
Pros:
- Cost-effective (starting from €5-10/month)
- Scalable (easy to upgrade resources)
- Full root access and control
- Quick deployment
- Good for small to medium servers (10-64 players)
Cons:
- Shared physical hardware
- Limited by host node performance
- May experience “noisy neighbor” issues
- Less predictable performance under load
Best For:
- Small to medium servers (10-64 players)
- Development and testing
- Budget-conscious operators
- Learning and experimentation
Dedicated Server
Dedicated servers provide exclusive access to physical hardware.
Pros:
- Full hardware resources (no sharing)
- Best performance and consistency
- Predictable performance
- Full control over hardware
- Ideal for large servers (64+ players)
Cons:
- Higher cost (€50-200+/month)
- Requires more technical knowledge
- Longer setup time
- Hardware maintenance responsibility
Best For:
- Large servers (64-128+ players)
- High-traffic production servers
- Multiple server instances
- Performance-critical applications
Cloud Hosting
Managed cloud platforms (AWS, Google Cloud, Azure).
Pros:
- Highly scalable
- Global infrastructure
- Managed services available
- Pay-as-you-go pricing
- Enterprise-grade reliability
Cons:
- More expensive than VPS
- Complex pricing structure
- Requires cloud expertise
- Can be overkill for small servers
Best For:
- Enterprise deployments
- Multi-region setups
- Auto-scaling requirements
- High availability needs
Provider Comparison
Hetzner
Overview: German hosting provider known for excellent price-to-performance ratio.
Pricing:
- VPS: €4.15-40/month
- Dedicated: €40-200+/month
Pros:
- Excellent price/performance
- High-quality hardware (AMD EPYC, Intel Xeon)
- Fast NVMe SSDs
- Good network (1 Gbps)
- DDoS protection included
- EU data centers (GDPR compliant)
Cons:
- Limited support (community-based)
- No managed services
- Payment verification required
- Limited locations (EU only)
Recommended Plans:
VPS (CX11 - Small Server):
- 2 vCPU cores
- 4 GB RAM
- 40 GB NVMe SSD
- Price: €4.15/month
- Players: 10-20
VPS (CPX31 - Medium Server):
- 4 vCPU cores
- 8 GB RAM
- 160 GB NVMe SSD
- Price: €8.31/month
- Players: 30-50
Dedicated (AX41 - Large Server):
- AMD Ryzen 5 3600 (6 cores)
- 64 GB RAM
- 2x 512 GB NVMe SSD
- Price: €40/month
- Players: 64-128+
OVH
Overview: French hosting provider with global presence and strong DDoS protection.
Pricing:
- VPS: €3.99-50/month
- Dedicated: €40-300+/month
Pros:
- Strong DDoS protection (included)
- Global data centers
- Good support
- Flexible billing
- Enterprise options available
Cons:
- Higher prices than Hetzner
- Setup can be complex
- Support response time varies
Recommended Plans:
VPS (Starter - Small Server):
- 2 vCPU cores
- 4 GB RAM
- 80 GB SSD
- Price: €3.99/month
- Players: 10-20
VPS (Value - Medium Server):
- 4 vCPU cores
- 8 GB RAM
- 160 GB SSD
- Price: €7.99/month
- Players: 30-50
Dedicated (Game-1 - Large Server):
- Intel i5-8400 (6 cores)
- 32 GB RAM
- 2x 240 GB SSD
- Price: €79/month
- Players: 64-128+
DigitalOcean
Overview: US-based cloud provider with excellent documentation and developer-friendly interface.
Pricing:
- Droplets: $6-80/month
- Dedicated: $300+/month
Pros:
- Excellent documentation
- User-friendly interface
- Good support
- Global data centers
- Predictable pricing
Cons:
- More expensive than Hetzner/OVH
- Limited DDoS protection
- No dedicated servers (only droplets)
Recommended Plans:
Droplet (4GB - Small Server):
- 2 vCPU cores
- 4 GB RAM
- 80 GB SSD
- Price: $24/month
- Players: 10-20
Droplet (8GB - Medium Server):
- 4 vCPU cores
- 8 GB RAM
- 160 GB SSD
- Price: $48/month
- Players: 30-50
Other Providers
Contabo:
- Very cheap VPS options
- Good for testing
- Performance can vary
- Price: €4-20/month
Vultr:
- Good performance
- Global locations
- Hourly billing
- Price: $6-40/month
Linode (Akamai):
- Reliable performance
- Good support
- Price: $12-48/month
Provider-Specific Setup Guides
Hetzner Setup
1. Create Account and Server
- Visit hetzner.com
- Create account (verification required)
- Go to Cloud Console
- Create new project
- Add server → Choose location (Falkenstein/Nuremberg)
- Select image: Ubuntu 22.04
- Choose plan (CPX31 recommended for medium servers)
- Add SSH key or set root password
- Create server
2. Initial Server Setup
# Connect to server
ssh root@your-server-ip
# Update system
apt update && apt upgrade -y
# Create FiveM user
useradd -m -s /bin/bash fivem
usermod -aG sudo fivem
# Set up firewall
ufw allow 22/tcp
ufw allow 30120/tcp
ufw allow 30120/udp
ufw allow 40120/tcp
ufw enable
# Install dependencies
apt install -y curl wget git unzip3. Install FiveM Server
# Switch to FiveM user
su - fivem
# Create server directory
mkdir -p /home/fivem/server
cd /home/fivem/server
# Download FiveM artifacts (replace with latest version)
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/[LATEST]/fx.tar.xz
tar xf fx.tar.xz
# Set permissions
chmod +x run.sh4. Configure Server
# Create server.cfg
nano server.cfg
# Add basic configuration
set sv_licenseKey "your-license-key"
set sv_maxclients 64
set onesync on
set onesync_enableInfinity 1OVH Setup
1. Create Account and Server
- Visit ovh.com
- Create account
- Go to Public Cloud
- Create new project
- Add instance → Choose region
- Select image: Ubuntu 22.04
- Choose flavor (b2-7 recommended)
- Add SSH key
- Create instance
2. Initial Server Setup
# Connect to server
ssh ubuntu@your-server-ip
# Update system
sudo apt update && sudo apt upgrade -y
# Install FiveM (same as Hetzner)
# Follow Hetzner steps 2-4DigitalOcean Setup
1. Create Droplet
- Visit digitalocean.com
- Create account
- Go to Droplets → Create
- Choose region
- Select image: Ubuntu 22.04
- Choose plan (8GB recommended)
- Add SSH key
- Create droplet
2. Initial Server Setup
# Connect to server
ssh root@your-droplet-ip
# Update system
apt update && apt upgrade -y
# Install FiveM (same as Hetzner)
# Follow Hetzner steps 2-4Cost Analysis
Small Server (10-20 players)
| Provider | Plan | Monthly Cost | Setup Cost |
|---|---|---|---|
| Hetzner | CX11 | €4.15 | €0 |
| OVH | Starter | €3.99 | €0 |
| DigitalOcean | 4GB | $24 | $0 |
| Contabo | VPS S | €4.99 | €0 |
Recommendation: Hetzner CX11 or OVH Starter for best value.
Medium Server (30-50 players)
| Provider | Plan | Monthly Cost | Setup Cost |
|---|---|---|---|
| Hetzner | CPX31 | €8.31 | €0 |
| OVH | Value | €7.99 | €0 |
| DigitalOcean | 8GB | $48 | $0 |
| Vultr | 8GB | $40 | $0 |
Recommendation: Hetzner CPX31 for best price/performance.
Large Server (64-128+ players)
| Provider | Plan | Monthly Cost | Setup Cost |
|---|---|---|---|
| Hetzner | AX41 | €40 | €0 |
| OVH | Game-1 | €79 | €0 |
| DigitalOcean | 32GB | $192 | $0 |
| Hetzner | EX42 | €60 | €0 |
Recommendation: Hetzner AX41 for dedicated performance at VPS price.
Additional Costs
- Domain name: $10-15/year
- SSL certificate: Free (Let’s Encrypt)
- Backup storage: €2-5/month (optional)
- Monitoring: Free (self-hosted) or $5-20/month (managed)
Performance Benchmarks
CPU Performance
Test: FiveM server with 50 players, standard resources
| Provider | Plan | Avg CPU Usage | Peak CPU Usage | FPS Stability |
|---|---|---|---|---|
| Hetzner CPX31 | 4 vCPU | 60-70% | 85% | Stable |
| OVH Value | 4 vCPU | 65-75% | 90% | Stable |
| DigitalOcean 8GB | 4 vCPU | 70-80% | 95% | Stable |
| Hetzner AX41 | 6 cores | 40-50% | 65% | Excellent |
Network Performance
Test: 50 players, average ping
| Provider | Location | Avg Ping (EU) | Avg Ping (US) | Bandwidth |
|---|---|---|---|---|
| Hetzner | Germany | 15-25ms | 90-120ms | 1 Gbps |
| OVH | France | 20-30ms | 100-130ms | 250 Mbps |
| DigitalOcean | US East | 80-100ms | 20-40ms | 1 Gbps |
Disk I/O Performance
Test: Database operations, resource loading
| Provider | Storage Type | Read IOPS | Write IOPS |
|---|---|---|---|
| Hetzner | NVMe SSD | 40,000+ | 40,000+ |
| OVH | SSD | 3,000 | 1,500 |
| DigitalOcean | SSD | 3,000 | 3,000 |
Migration Guides
Migrating Between Providers
Pre-Migration Checklist
- Backup server files
- Export database
- Document current configuration
- Notify players of downtime
- Schedule maintenance window
Step 1: Backup Everything
# Backup server files
tar -czf fivem-backup-$(date +%Y%m%d).tar.gz /opt/fivem/
# Backup database
mysqldump -u root -p fivem_db > fivem-db-backup.sql
# Backup server.cfg
cp server.cfg server.cfg.backupStep 2: Set Up New Server
- Create new server on new provider
- Follow provider-specific setup guide
- Install FiveM server
- Install database (MySQL/MariaDB)
Step 3: Transfer Files
# On old server - create archive
tar -czf fivem-migration.tar.gz /opt/fivem/
# Transfer to new server
scp fivem-migration.tar.gz user@new-server-ip:/tmp/
scp fivem-db-backup.sql user@new-server-ip:/tmp/
# On new server - extract
cd /opt/fivem
tar -xzf /tmp/fivem-migration.tar.gz
# Restore database
mysql -u root -p fivem_db < /tmp/fivem-db-backup.sqlStep 4: Update Configuration
# Update server.cfg with new IP
nano server.cfg
# Update database connection if needed
# Update any IP-specific configurationsStep 5: Test New Server
# Start server
./run.sh
# Test connection
# Verify all resources load
# Test database connections
# Check logs for errorsStep 6: DNS/Connection Update
# Update DNS records (if using domain)
# Or update server list IP
# Update firewall rules if needed
# Test player connectionsStep 7: Final Migration
- Stop old server
- Start new server
- Verify all services running
- Monitor for issues
- Keep old server for 24-48 hours as backup
Upgrading Within Same Provider
Hetzner: VPS to Dedicated
- Create new dedicated server
- Follow migration steps above
- Cancel old VPS after migration complete
OVH: Upgrade Instance
- Go to OVH Control Panel
- Select instance → Resize
- Choose larger plan
- Confirm upgrade (may require reboot)
Recommended Specifications
Small Server (10-20 players)
Minimum:
- 2 CPU cores
- 4 GB RAM
- 40 GB SSD
- 100 Mbps network
Recommended:
- 2-4 CPU cores
- 4-8 GB RAM
- 80 GB SSD
- 1 Gbps network
Provider Recommendations:
- Hetzner CX11 (€4.15/month)
- OVH Starter (€3.99/month)
Medium Server (30-50 players)
Minimum:
- 4 CPU cores
- 8 GB RAM
- 80 GB SSD
- 1 Gbps network
Recommended:
- 4-6 CPU cores
- 8-16 GB RAM
- 160 GB SSD
- 1 Gbps network
Provider Recommendations:
- Hetzner CPX31 (€8.31/month)
- OVH Value (€7.99/month)
Large Server (64-128+ players)
Minimum:
- 6 CPU cores
- 16 GB RAM
- 200 GB SSD
- 1 Gbps network
Recommended:
- 8+ CPU cores
- 32+ GB RAM
- 500 GB+ NVMe SSD
- 1 Gbps network
Provider Recommendations:
- Hetzner AX41 (€40/month)
- OVH Game-1 (€79/month)
Best Practices
- Start Small: Begin with VPS, upgrade as needed
- Monitor Performance: Track CPU, RAM, and network usage
- Regular Backups: Automate backups to external storage
- Security First: Configure firewall, use SSH keys, keep updated
- Location Matters: Choose data center close to your player base
- Test Before Migration: Always test new server before switching
- Document Everything: Keep notes on configuration and changes
- Plan for Growth: Choose provider that allows easy upgrades
- Cost Optimization: Review usage regularly, downsize if possible
- Support: Consider provider support quality for your skill level
Summary
- VPS: Best for small-medium servers, cost-effective
- Dedicated: Best for large servers, predictable performance
- Hetzner: Best price/performance, recommended for most
- OVH: Good DDoS protection, global presence
- DigitalOcean: User-friendly, good documentation
- Migration: Always backup, test thoroughly, keep old server as backup
- Specifications: Scale based on player count and resource usage