Yuvraj Verma LogoYuvraj Verma
Back to Blogs
FiveM
Jul 25, 2025
15 min read

Host FiveM Server in India

Yuvraj Verma AvatarYuvraj Verma• Server Hosting & Gaming Guide Author

What is FiveM?

FiveM is a popular multiplayer modification framework for Grand Theft Auto V, allowing you to play on customized multiplayer servers with unique game modes, vehicles, scripts, and communities. Unlike GTA Online, FiveM lets server owners create their own rules, mods, and experiences, from roleplay to racing and more.

What is a FiveM Server?

A FiveM server is a dedicated or virtual server that runs the FiveM software, hosting custom multiplayer worlds for players to join. Server owners can control everything—from the map and mods to player permissions and scripts—enabling unique gameplay experiences. Hosting your own FiveM server gives you full control over your community, rules, and content.

Complete guide to hosting your FiveM server in India with the best hosting providers, step-by-step setup instructions, and optimization tips for Indian players.

Why Host in India?

Hosting your FiveM server in India provides several advantages for Indian players. Lower ping times, better connection stability, and compliance with local regulations make it the preferred choice for serious server owners targeting the Indian gaming community.

Low Ping

10-50ms ping for Indian players

Data Compliance

Follows Indian data protection laws

Local Support

Support in Indian time zones

Choosing hosting in India

After comparing many providers for price, hardware, and reliability, I chose Hostinger for my VPS. Their Mumbai datacenter, great support, and easy dashboard made the decision simple. Here’s a quick look at why I picked them and what you get:

Hostinger Logo
Hostinger
Mumbai, India Datacenter
Hostinger is a global web hosting company founded in 2004, known for affordable VPS, fast NVMe storage, and a user-friendly dashboard. Their Mumbai datacenter ensures low latency for Indian users.
4.7/5Trustpilot
Established 2004Global PresenceISO 27001
24/7 SupportEasy DashboardFree Backups
Low Latency Mumbai99.9% UptimeDDoS Protection
NVMe SSD StorageAutomatic Snapshots
Pricing & Specs
PlanKVM 2 (12mo)
Base Price₹19,188
Discounted₹7,009
Coupon-₹779
Taxes₹1,262
Total (12mo)₹8,271
CPU2 vCPU (AMD EPYC)
RAM8 GB
Storage100 GB NVMe SSD
Bandwidth8 TB
Network1,000 Mb/s
BackupsSnapshots & auto-backups
View All Hostinger VPS PlansAffiliate link — supports the creator at no extra cost!

Hostinger LogoCoupon
YUVRAJ10
10% OFFValid for 12/24 mo — Use this code at checkout!

Choose Your OS & SSH Client

For this guide, we are installing Ubuntu 24.04 LTS as the server operating system. It's stable, secure, and widely supported for FiveM servers.
To connect to your server, you need an SSH client. In the video, we used Terminus, but you can also use PuTTY (Windows) or Terminus (cross-platform).

Ubuntu 24.04 LTS

Recommended OS for FiveM servers. Select this when purchasing your VPS or dedicated server.

SSH Client

Use Terminus (used in video) or PuTTY to connect to your server securely.

Connect & Install Essentials

Once your server is ready, connect via SSH and install the required packages. Let's start with the essential tools:

Install wget (Download Tool)

apt install wget
apt install wget

This installs wget, which we'll use to download FiveM server files.

Install MariaDB Database Server

apt install mariadb-server
apt install mariadb-server

MariaDB will store all your FiveM server data, player information, and configurations.

Configure MariaDB for Remote Access

Now we need to configure MariaDB to allow remote connections and create a user for our FiveM server. This will let us manage the database remotely using tools like HeidiSQL.

Edit MariaDB Configuration File

nano config
nano /etc/mysql/mariadb.conf.d/50-server.cnf

This opens the MariaDB configuration file in the nano text editor.

Find and Change Bind Address

Look for this line in the file:

bind-address (old)
bind-address = 127.0.0.1

Change it to:

bind-address (new)
bind-address = 0.0.0.0

To save this, Press CTRL+O and then Enter. Lastly CTRL+X to exit.

Connect to MySQL

mysql
mysql

This connects you to the MySQL command line interface.

Create Database User with Remote Access

CREATE USER
CREATE USER 'youruser'@'%' IDENTIFIED BY 'yourpassword';

Create a user that can connect from anywhere

GRANT PRIVILEGES
GRANT ALL PRIVILEGES ON *.* TO 'youruser'@'%' WITH GRANT OPTION;

Grant all privileges to the user

FLUSH PRIVILEGES
FLUSH PRIVILEGES;

Apply the changes

Restart MariaDB Service

restart mariadb
sudo systemctl restart mariadb

This restarts MariaDB to apply the configuration changes.

Test Remote Connection:

1. Download and install HeidiSQL on your local computer

2. Connect using your server IP, username, and password

3. If it works, you're ready to continue. If not, restart the server and double-check the bind address

Download & Install FiveM Server

Now let's download and set up the FiveM server. We'll create a dedicated directory and get the latest server files from the official FiveM runtime.

Create FiveM Directory

Create directory
mkdir FiveM

Creates a new directory called "FiveM" for our server files.

Navigate to FiveM Directory

Change directory
cd FiveM

Changes to the FiveM directory where we'll download the server files.

Get Latest FiveM Artifacts

Visit FiveM Artifacts Page and copy the link of the latest build.

Download FiveM
wget -O fx.tar.xz [PASTE_LATEST_LINK_HERE]

Downloads the latest FiveM server files and saves them as fx.tar.xz

Extract FiveM Server Files

Extract files
tar -xf fx.tar.xz

Extracts all the FiveM server files from the downloaded archive.

List Files to Verify

List files
ls

Lists all files in the directory. You should see the "run.sh" file among others.

Start FiveM Server

Run server
./run.sh

If you run it directly like this, the server will stop as soon as you close the terminal or press Ctrl+C.
To keep your server running in the background, use tmux as shown below.

Recommended: Use tmux to keep your server running

StepCommand / KeysDescription
Install tmux (if not installed - ONE TIME)apt install tmux -yInstalls tmux if not already installed
Start tmux sessiontmux new -s fivemCreates a new tmux session named fivem
Run your FiveM server./run.shStart the server inside tmux
Detach from tmuxCtrl + B, then DLeave tmux but keep server running
Reconnect to the sessiontmux attach -t fivemReopen your tmux session
List all tmux sessionstmux lsSee all running tmux sessions
Kill the session (stop server)tmux kill-session -t fivemStops the server and closes the tmux session
Note: The tmux session is only valid until your server (VPS) is restarted. If you reboot, you need to create a new tmux session and start your server again.

What Happens Next:

• After running the server, you'll see a code in the terminal

• Open your browser and go to: your-server-ip:40120

• Paste the code from the terminal - this opens txAdmin

• Authenticate with your FiveM ID

Setup txAdmin Panel

After running the FiveM server, you'll get a setup code. This code is used to access txAdmin, which is the web-based management panel for your FiveM server.

Access txAdmin Panel

Open your browser and navigate to:

Access URL
your-server-ip:40120

Replace "your-server-ip" with your actual server's IP address.

txAdmin Setup Steps

1
Paste the Setup Code

Enter the code that appeared in your terminal when you ran ./run.sh

2
Authenticate with FiveM ID

Log in using your FiveM/Cfx.re account credentials

3
Set Server Name

Choose a unique name for your FiveM server

4
Select Recipe (QBCore Recommended)

Choose QBCore for a full roleplay framework with jobs, housing, and economy

Get Server Registration Key

You'll need a server key from the FiveM portal. Visit: FiveM Server Registration

FiveM Portal
https://portal.cfx.re/servers/registration-keys

Click "Generate Key" and copy the generated registration key.

Configure Database Connection

In txAdmin, click "Show/Hide Database Options" and enter your database details:

Database Settings
  • Host: localhost
  • Port: 3306
  • Username: youruser (that you created)
  • Password: yourpassword (that you set)
  • Database: You can set your own or use the default
Final Steps
  • • Click "Continue" to complete setup
  • • txAdmin will configure everything automatically
  • • Your server will start running
  • • You can now connect from FiveM client

Connect to Your Server:

1. Open FiveM client on your computer

2. Press F8 to open console

3. Type: connect your-server-ip

4. You're now connected to your FiveM server!

🎉 Congratulations!

Your FiveM server is ready with minimal ping. Enjoy seamless gameplay and have fun with your community!

Need help? Join Discord or comment on the video!