← Back to Documentation List

📚 Quick Navigation

Quick Info 🔌 Ports Installation Configuration ⚙️ Startup Parameters 🔧 Troubleshooting Performance Security

Insurgency: Sandstorm Server Hosting Guide

Overview

Insurgency: Sandstorm is a multiplayer game server that can be hosted on a VPS or dedicated server. This comprehensive guide covers everything you need to know about hosting a Insurgency: Sandstorm server for your community.

Quick Info

  • Default Port: Varies (see configuration)
  • Protocol: TCP/UDP
  • Minimum RAM: 1GB
  • Engine: Various
  • Steam App ID: 581320
  • Recommended OS: Linux (Ubuntu/Debian) or Windows Server
  • Configuration Files:
    • Insurgency/Saved/Config/LinuxServer/Game.ini - Server Configs
    • Insurgency/Config/Server/MapCycleCustom.txt - Custom Map Cycle
    • Insurgency/Config/Server/Admins.txt - Admins List

🔌 Network Ports

Required Ports

The Insurgency: Sandstorm server typically uses a configurable port. Check your server configuration files for the specific port settings.

Firewall Configuration

Allow server ports through your firewall:

# UFW (Ubuntu/Debian)
sudo ufw allow [PORT]/tcp
sudo ufw allow [PORT]/udp
sudo ufw reload

# FirewallD (CentOS/RHEL)
sudo firewall-cmd --permanent --add-port=[PORT]/tcp
sudo firewall-cmd --permanent --add-port=[PORT]/udp
sudo firewall-cmd --reload

# Windows Firewall
netsh advfirewall firewall add rule name="Insurgency: Sandstorm Server" dir=in action=allow protocol=TCP localport=[PORT]
netsh advfirewall firewall add rule name="Insurgency: Sandstorm Server" dir=in action=allow protocol=UDP localport=[PORT]

⚠️ Port Security Notes

  • Only open ports that are necessary for the game server to function
  • Consider using non-standard ports to reduce automated attacks
  • If using cloud hosting, configure security groups properly
  • Monitor connection attempts and unusual traffic patterns

Installation & Setup

System Requirements

  • OS: Linux (Ubuntu 20.04+ or Debian 11+ recommended) or Windows Server 2019+
  • CPU: 2+ cores recommended (single-threaded performance important for most game servers)
  • RAM: 1GB minimum (more for larger player counts)
  • Storage: 5GB+ for server files (SSD recommended for better performance)
  • Network: Stable internet connection with low latency

Installation Steps

Linux (Ubuntu/Debian)

# Update system packages
sudo apt update && sudo apt upgrade -y

# Create server directory
mkdir -p ~/gameserver
cd ~/gameserver

# Download server files (method varies by game)
# Check official documentation for download links

Windows Server

Download the server files from the official game website or through Steam (if applicable). Extract to a dedicated folder and run the server executable.

Using SteamCMD - RECOMMENDED METHOD

This game can be installed via SteamCMD using App ID: 581320

Install SteamCMD (Ubuntu/Debian)

# Update package list
sudo apt update

# Enable 32-bit architecture
sudo dpkg --add-architecture i386
sudo apt update

# Install SteamCMD
sudo apt install -y lib32gcc-s1 steamcmd

Download Server Files

# Create directory for game server
mkdir -p ~/gameservers/insurgencysandstorm

# Run SteamCMD and download
steamcmd +login anonymous \
         +force_install_dir ~/gameservers/insurgencysandstorm \
         +app_update 581320 validate \
         +quit

# Server files are now in ~/gameservers/insurgencysandstorm/
cd ~/gameservers/insurgencysandstorm
ls -la

Windows Installation with SteamCMD

  1. Download SteamCMD from: https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
  2. Extract to C:\steamcmd\
  3. Open Command Prompt and run:
cd C:\steamcmd
steamcmd.exe +login anonymous ^
             +force_install_dir C:\gameservers\insurgencysandstorm ^
             +app_update 581320 validate ^
             +quit

Server Configuration

After installation, you'll need to configure your server. Here's where to find the configuration files and what settings you can change.

Essential Settings

  • Server Name: Set a descriptive name for your server
  • Max Players: Configure based on your server's resources
  • Password: Optional password protection for private servers
  • Admin/RCON Password: Set a strong password for remote administration
  • Game Mode: Configure game-specific modes and settings

Configuration Files

Important configuration files for this server:

  • Insurgency/Saved/Config/LinuxServer/Game.ini - Server Configs
  • Insurgency/Config/Server/MapCycleCustom.txt - Custom Map Cycle
  • Insurgency/Config/Server/Admins.txt - Admins List

Server Commands

Common administrative commands (access via console or RCON):

# Kick player
kick [player_name]

# Ban player
ban [player_name]

# Change map/level (syntax varies by game)
changelevel [map_name]

# Set admin password (if supported)
setadminpassword [password]

⚙️ Startup Parameters

Command Line Template

The server uses the following command line template:

%MAP%%SCENARIO%%PLAYERS%%PASSWORD% %PORT% %QUERY_PORT% %SERVERNAME% %MAPCYCLE% %CONTROL_PASSWORD% %RCON_PORT%

Available Startup Parameters

The following parameters can be configured when starting the server:

-GSLTToken= - Game Server Login Token

Manage your tokens here

-GameStats - Game Stats

Enable Game Stats

-mutators= - Mutators

Mutators to be used on the server, separate multiple mutators with a comma and no space

Default: OfficialRules

-hostname= - Server name

The desired server name

?password= - Password

The password used to join the server

?Scenario= - Scenario

This is the scenario to be used with the map. Needs to be a valid scenario for the selected map

Options:

  • Scenario_Crossing_Checkpoint_Insurgents - Canyon Checkpoint Insurgents
  • Scenario_Crossing_Checkpoint_Security - Canyon Checkpoint Security
  • Scenario_Farmhouse_Checkpoint_Insurgents - Farmhouse Checkpoint Insurgents
  • Scenario_Farmhouse_Checkpoint_Security - Farmhouse Checkpoint Security
  • Scenario_Summit_Checkpoint_Insurgents - Mountain Checkpoint Insurgents
  • Scenario_Summit_Checkpoint_Security - Mountain Checkpoint Security
  • Scenario_Refinery_Checkpoint_Insurgents - Oilfield Checkpoint Insurgents
  • Scenario_Refinery_Checkpoint_Security - Oilfield Checkpoint Security
  • Scenario_Precinct_Checkpoint_Insurgents - Precinct Checkpoint Insurgents
  • Scenario_Precinct_Checkpoint_Security - Precinct Checkpoint Security
  • Scenario_Hideout_Checkpoint_Insurgents - Town Checkpoint Insurgents
  • Scenario_Hideout_Checkpoint_Security - Town Checkpoint Security
  • Scenario_Crossing_Firefight_West - Canyon Firefight West
  • Scenario_Farmhouse_Firefight_East - Farmhouse Firefight East
  • Scenario_Farmhouse_Firefight_West - Farmhouse Firefight West
  • Scenario_Summit_Firefight_East - Mountain Firefight East
  • Scenario_Summit_Firefight_West - Mountain Firefight West
  • Scenario_Refinery_Firefight_West - Oilfield Firefight West
  • Scenario_Precinct_Firefight_East - Precinct Firefight East
  • Scenario_Precinct_Firefight_West - Precinct Firefight West
  • Scenario_Hideout_Firefight_East - Town Firefight East
  • Scenario_Hideout_Firefight_West - Town Firefight West
  • Scenario_Crossing_Push_Insurgents - Canyon Push Insurgents
  • Scenario_Crossing_Push_Security - Canyon Push Security
  • Scenario_Farmhouse_Push_Insurgents - Farmhouse Push Insurgents
  • Scenario_Farmhouse_Push_Security - Farmhouse Push Security
  • Scenario_Summit_Push_Insurgents - Mountain Push Insurgents
  • Scenario_Summit_Push_Security - Mountain Push Security
  • Scenario_Refinery_Push_Insurgents - Oilfield Push Insurgents
  • Scenario_Refinery_Push_Security - Oilfield Push Security
  • Scenario_Precinct_Push_Insurgents - Precinct Push Insurgents
  • Scenario_Precinct_Push_Security - Precinct Push Security
  • Scenario_Hideout_Push_Insurgents - Town Push Insurgents
  • Scenario_Hideout_Push_Security - Town Push Security
  • Scenario_Crossing_Skirmish - Canyon Skirmish
  • Scenario_Farmhouse_Skirmish - Farmhouse Skirmish
  • Scenario_Summit_Skirmish - Mountain Skirmish
  • Scenario_Refinery_Skirmish - Oilfield Skirmish
  • Scenario_Precinct_Skirmish - Precinct Skirmish
  • Scenario_Hideout_Skirmish - Town Skirmish

-MapCycle= - Map cycle

This is the map cycle, Default will cycle through all PVP scenarios available, Custom will use the file Insurgency/Config/Server/MapCycleCustom.txt

Options:

  • - Default
  • MapCycleCustom - Custom

-Rcon - RCON

Enable RCON protocol (on server port + 10). Use tools like McRCON to administer your server. RCON commands can be found here

-EnableCheats - Cheats

Enable the cheats to be used from the ingame Admin menu

Creating a Start Script

Linux (start.sh):

#!/bin/bash
cd /path/to/server
./server_executable [parameters] 2>&1 | tee server.log
chmod +x start.sh
./start.sh

Windows (start.bat):

@echo off
cd /d "%~dp0"
server_executable.exe [parameters]
pause

Running as a Service

Linux (systemd):

# Create service file: /etc/systemd/system/gameserver.service
[Unit]
Description=Insurgency: Sandstorm Server
After=network.target

[Service]
Type=simple
User=gameserver
WorkingDirectory=/home/gameserver/server
ExecStart=/home/gameserver/server/start.sh
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
# Enable and start service
sudo systemctl daemon-reload
sudo systemctl enable gameserver
sudo systemctl start gameserver
sudo systemctl status gameserver

🔧 Troubleshooting

Server Won't Start

Check Server Logs

# View recent log entries
tail -f server.log

# Or check system logs
journalctl -u gameserver -f

Port Already in Use

# Find what's using the port
sudo lsof -i :[PORT]
sudo netstat -tulpn | grep [PORT]

# Kill the process or change server port

Missing Dependencies

Ensure all required dependencies are installed. Check the error messages for missing libraries or packages.

Connection Issues

Can't Connect to Server

  1. Verify server is running: ps aux | grep server
  2. Check port is listening: netstat -an | grep [PORT]
  3. Verify firewall rules (see Ports section above)
  4. Check server IP: Use external IP, not localhost
  5. Router/NAT: Ensure port forwarding is configured

High Latency/Lag

  • Check server resource usage (CPU, RAM, disk I/O)
  • Verify network bandwidth is adequate
  • Consider server location relative to players
  • Check for background processes consuming resources

Performance Issues

Server Lag

  1. Monitor resources: Use htop or top
  2. Check disk I/O: Use iotop
  3. Review server logs for errors or warnings
  4. Reduce player count or increase server resources
  5. Optimize configuration based on server capacity

Memory Leaks

# Monitor memory usage
free -h
top -p $(pgrep -f server)

# Restart server regularly via cron if needed
0 4 * * * /home/gameserver/restart.sh

Performance Optimization

Server Tuning

  • CPU: Ensure adequate CPU allocation; most game servers are single-threaded
  • RAM: Allocate sufficient memory; monitor usage and adjust as needed
  • Disk: Use SSD storage for better I/O performance
  • Network: Ensure stable, low-latency connection

Operating System Optimization

# Increase file descriptor limits
echo "* soft nofile 65536" >> /etc/security/limits.conf
echo "* hard nofile 65536" >> /etc/security/limits.conf

# Network tuning
sysctl -w net.core.rmem_max=16777216
sysctl -w net.core.wmem_max=16777216
sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216"
sysctl -w net.ipv4.tcp_wmem="4096 87380 16777216"

Monitoring

Set up monitoring to track server health:

  • CPU and memory usage
  • Network traffic and latency
  • Player count and activity
  • Error rates and crash logs

Backup Strategy

#!/bin/bash
# backup.sh - Run via cron
DATE=$(date +%Y%m%d_%H%M%S)
BACKUP_DIR="/backups/gameserver"
SERVER_DIR="/home/gameserver/server"

# Create backup
tar -czf $BACKUP_DIR/backup_$DATE.tar.gz -C $SERVER_DIR .

# Keep only last 7 days
find $BACKUP_DIR -name "backup_*.tar.gz" -mtime +7 -delete

Security Best Practices

Firewall Configuration

# Minimal firewall - only allow necessary ports
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow [SERVER_PORT]/tcp
sudo ufw allow [SERVER_PORT]/udp
sudo ufw allow 22/tcp  # SSH
sudo ufw enable

Strong Passwords

  • Use strong, unique passwords for admin/RCON access
  • Never use default passwords
  • Change passwords regularly
  • Don't share admin credentials unnecessarily

Regular Updates

  • Keep server software updated to the latest stable version
  • Update operating system and dependencies regularly
  • Subscribe to security advisories for your game
  • Test updates on a staging server before production deployment

Access Control

  • Limit SSH access to specific IPs if possible
  • Use SSH keys instead of passwords
  • Disable root login via SSH
  • Implement fail2ban or similar intrusion prevention

DDoS Protection

  • Consider DDoS protection services (Cloudflare, OVH, etc.)
  • Implement rate limiting where supported
  • Monitor for unusual traffic patterns
  • Have an incident response plan

Additional Resources

  • Official Insurgency: Sandstorm documentation and forums
  • Community wikis and guides
  • Game-specific Discord or Reddit communities
  • Server hosting provider documentation

Important Notes

  • Always make backups before making configuration changes
  • Keep your server and dependencies updated
  • Monitor server resources and player activity
  • Follow the game's End User License Agreement (EULA) and Terms of Service
  • Join community forums for support and best practices

Last updated: November 2025 | For Insurgency: Sandstorm server hosting