How to Start Your Own OGame Private Server
Ever wanted to run your own OGame universe, with your own rules and your friends as the first players? You can! You don't need to be a programmer. If you can follow a recipe, you can follow this guide.
We'll go step by step. Every step tells you what to do and why.
What you need before you start
| What | Why | Cost (about) |
|---|---|---|
| A computer with internet | To set everything up | – |
| A VPS (a rented computer on the internet) | Your game runs on it 24/7, also when your own PC is off | €5–10 per month |
| A domain name (like mygalaxy.com) | So players can find your game by a name instead of a number | €5–15 per year |
| About 2 hours | For the first setup | – |
Tip: Not sure yet? Do Step 0 first. It's free and you can try everything on your own PC.
Step 0 (optional): Try it on your own PC first
Before you pay for anything, you can run the game on your own computer to see how it works.
- Download and install Docker Desktop from docker.com. Docker is a program that runs the whole game for you in a kind of "box", so you don't have to install lots of separate parts.
- Download and install Git from git-scm.com. Git is a tool to download code from GitHub.
- Open a terminal (on Windows: search for "Terminal" or "PowerShell" in the Start menu).
- Type these commands one by one and press Enter after each line:
git clone https://github.com/lanedirt/OGameX.git cd OGameX docker compose up -d
- Wait. The first time can take up to 10 minutes. That's normal.
- Open your browser and go to http://localhost. You should see the game!
- Register an account. The first account you make becomes the admin (the boss of the server).
Only you can play this version, because it runs on your own PC. To let other people play, continue with Step 1.
Step 1: Pick your game
There are a few free "OGame clones" (games that work like OGame). For beginners we recommend OGameX:
- It's free and open source (anyone may use it).
- It's still being updated.
- It installs with just a few commands thanks to Docker.
Other options are 2Moons (popular with older servers) and XG Proyect, but those need more technical knowledge. This guide uses OGameX.
Step 2: Rent a VPS
A VPS is a computer in a data center that you rent. It's always on, so your game is always online.
- Pick a hosting company that sells VPS servers (search for "VPS hosting").
- Choose a plan with at least 2 CPU cores and 4 GB RAM. That's enough for a few hundred players.
- As operating system, choose Ubuntu (the newest "LTS" version).
- After ordering you get an email with:
an IP address (looks like123.45.67.89) – this is the address of your VPS
a username (usuallyroot) and a password
Keep that email safe!
Step 3: Get a domain name
- Buy a domain name at a domain seller (search for "buy domain name").
- In the settings of your domain, find DNS settings.
- Add an A record:
Name:@(this means the main domain)
Value: the IP address of your VPS
It can take a few hours before your domain "points" to your VPS. You can continue in the meantime.
Step 4: Connect to your VPS
You control your VPS by typing commands. This is called SSH.
- Open the Terminal (Windows) or Terminal app (Mac).
- Type this, with your own IP address:
ssh root@123.45.67.89
- The first time it asks "Are you sure you want to continue connecting?" Type
yesand press Enter. - Type your password (you won't see the letters while typing, that's normal) and press Enter.
You're now "inside" your VPS. Everything you type now happens on that computer.
Step 5: Install Docker and Git on your VPS
Copy these commands one by one (press Enter after each line). They download and install the tools you need:
apt update apt install -y git curl -fsSL https://get.docker.com | sh
The last one is the official Docker install script. It takes a minute or two.
Step 6: Install the game
Now download and start OGameX:
git clone https://github.com/lanedirt/OGameX.git cd OGameX cp .env.example-prod .env
Important: change the database password first! The game comes with a default password (toor) that everybody knows. If you don't change it, anyone could break into your game. You change it in two files, and both must get the same new password.
First open the settings file:
nano .env
- Find the line
DB_PASSWORD=toorand replacetoorwith a long password that only you know. - Find the line
APP_URL=and put your own address behind it, for exampleAPP_URL=https://mygalaxy.com.
Press Ctrl+O, Enter (save) and Ctrl+X (close).
Then open the second file:
nano docker-compose.prod.yml
Find the line MYSQL_ROOT_PASSWORD: toor and replace toor with the same password. Save and close the same way.
Now start the game:
docker compose -f docker-compose.prod.yml up -d --build --force-recreate
Get a drink: the first start can take up to 10 minutes.
Step 7: Open your game and become admin
- Go to
https://yourdomain.comin your browser. - Your browser might warn that the connection is "not secure". That's because you don't have a proper HTTPS certificate yet (see Step 8). For now you can click "Advanced" and continue.
- Register the first account yourself. The first account becomes the admin. If someone else is faster, they'll be the boss of your server!
Step 8: About the "not secure" warning
The game comes with a temporary security certificate, which is why your browser warns you. Players trust a site with a lock icon much more. You can get a free real certificate (from Let's Encrypt), but how to add it depends on your setup. The easiest way: ask in the OGameX Discord (the link is on their GitHub page). Many server owners have done this before you.
Step 9: Make your universe special
Why would players choose your server? Think about:
- Speed: x1 is like the original. Speed servers (x10, x100, even x2000) are very popular because you grow much faster.
- Rules: protection for new players, moon chance, dark matter.
- A start date: announce your launch a few weeks ahead, so everyone starts together. That's much more fun!
Step 10: Your own name and logo
OGame and its artwork belong to Gameforge. Give your server its own name and logo, don't copy official images, and say on your site that it's an unofficial fan server. That keeps you out of trouble.
Step 11: Get your first players
A universe without players is empty. This is how you grow:
- List your server on OGame Private Server List. It's free, and players look for new servers there every day.
- Put the vote button on your website. After joining, go to your OPSL User CP and click Link Code. Copy the code and paste it on your homepage. Ask your players to vote: more votes = higher on the list = more new players.
- Open a Discord server where players can chat, and add the link to your listing.
- Announce your start date on your listing and Discord.
- Keep it alive: small updates, events and a friendly admin team keep players coming back.
Stuck?
That happens to everyone! Things you can do:
- Read the OGameX page on GitHub, it has more details and a place to ask questions.
- Copy the exact error message and search for it online. Usually someone had the same problem before.
- Ask a friend who knows a bit about servers to look along with you.
Checklist
- ☐ Tried the game on my own PC (optional)
- ☐ VPS rented
- ☐ Domain bought and pointed to my VPS
- ☐ Docker and Git installed
- ☐ OGameX installed
- ☐ Default passwords changed
- ☐ Admin account made (the first account!)
- ☐ HTTPS working (lock icon)
- ☐ Own server name and logo
- ☐ Server listed on OGame Private Server List
- ☐ Vote button on my website
- ☐ Discord server open
Ready? Add your server to OGame Private Server List and start your universe today!
