INSTALLING P2 SERVER ON WINDOWS
This guide installs P2 Server 1.0.9 on Windows 10/11 or Windows Server and turns it into a service that starts automatically when the computer boots.
1. Requirements
- 64-bit Windows 10/11 or Windows Server 2022+
- A user account with administrator rights
- PostgreSQL 15 or newer
- At least 2 GB of RAM and enough disk space for uploads
2. Prepare PostgreSQL
Install PostgreSQL
Use the official Windows installer. Keep the password you set for the postgres user during installation.
Check the service
In services.msc, make sure the PostgreSQL service is “Running”. The default address is 127.0.0.1:5432.
3. Install P2 Server
Download the installer
Download P2-Server-Setup-1.0.9.exe. Optionally, verify its integrity with the SHA-256 file.
The Windows "protected your PC" warning
The P2 Server installer does not have a commercial code-signing certificate yet, so Windows SmartScreen may show a blue warning the first time you run it:
More info
Click More info in the warning window.
Check the file
Make sure the file is named P2-Server-Setup-…exe and that you downloaded it only from p2.tdagaming.net.
Run anyway
Click Run anyway; setup starts.
Optionally verify the download with SHA-256 (PowerShell):
Get-FileHash .\P2-Server-Setup-1.0.9.exe -Algorithm SHA256
The value must match the one in the .sha256 file on the download page.
Configure the database
P2 Server Console currently has a Turkish interface; the English meaning of each button is given in brackets. In P2 Server Console, enter 127.0.0.1 as the address, 5432 as the port, postgres as the user, p2 as the database and your PostgreSQL password. You can leave the API port at 4000.
Save and start
Press “Kaydet, tabloları hazırla ve başlat” (Save, prepare tables and start). P2 creates the database, applies the migrations and starts the API.
4. Install the Windows startup service
Open Server Console as administrator and press “Windows servisi olarak kaydet” (Register as Windows service). From then on, P2 starts when the computer boots, without anyone having to sign in.
services.msc.5. Domain and HTTPS
For access from the internet, point your domain at the server's IP address and provide HTTPS with Caddy/Nginx. Caddy example:
p2.example.com {
reverse_proxy 127.0.0.1:4000
}Forward only ports 80 and 443 on your router. Do not expose ports 4000 and 5432 to the internet.
6. Connect the client
Download P2 Client. On first launch, enter your HTTPS domain as the server address, for example https://p2.example.com. The first user to register becomes the first administrator.
7. Backup and restore
The “Yedek al” (Back up) button in Server Console saves the PostgreSQL database and uploaded files into a single .p2backup file. Game builds can be large, so they are an optional extra. Before restoring, take a separate backup of the current server.