Skip to content

Windows Dedicated Server

JDevWebb edited this page Nov 26, 2026 · 1 revision

Run the Cross-Com server on its own on a Windows PC: no launcher needed, running whenever you want it, even at startup with nobody signed in.

Just want to play with friends tonight? Hosting from the Launcher does all of this in one click. This page is for a server you leave running, or want full control of.

What you need

  • A Windows 10 or 11 PC (or Windows Server) that stays on while your group plays. It needs very little: the matches run on the players' PCs.
  • TCP port 80 and UDP ports 21030 and 21031 free on that PC.
  • For friends on the internet: ports forwarded on your router (Port Forwarding and Routers), or a PC with a public address.

Note

Run the Windows server program, not the Docker image under Docker Desktop: Docker Desktop on Windows changes the addresses players' packets seem to come from, which breaks players connecting to each other.

1. Download and place it

  1. From the latest release, download crosscom-server-windows-x86_64.exe (release 0.1.3 and later). Check it as for the launcher: Antivirus Warnings.
  2. Make a folder for it, such as C:\CrossCom, and put it there. Renaming it crosscom-server.exe keeps the commands below short.

The server keeps its database, certificate and logs in the folder it's started from (or the paths its settings give), so give it a folder of its own.

2. Write its settings

In the same folder, make a text file named crosscom-server.toml (Notepad is fine: Save as type: All files, so it isn't saved as .toml.txt):

# The address players reach the server at: your public address, a domain name,
# or (for a server only on your network or VPN) this PC's address there.
public_address = "203.0.113.24"

# Players make their own accounts in the launcher, with a code you give them.
signup = true
signup_code = "paste-at-least-12-random-characters-here"

# HTTPS of its own on the web port, so players join with a join code.
https_port = 80
  • public_address: what players connect to. Your public address is shown by your router, or by sites such as whatismyip. A name works too (a dynamic DNS name is a good idea at home, where the address changes): the server looks it up as it starts.
  • signup_code: make it random, not a word. In PowerShell: -join ((48..57)+(65..90)+(97..122) | Get-Random -Count 16 | % {[char]$_}).
  • https_port = 80: the server makes its own HTTPS certificate the first time it starts, and serves HTTPS and plain HTTP on the same port. Players then set up with a join code. (With a domain and a certificate of your own, see Server Settings › HTTPS.)

Every other setting is optional: Server Settings.

Tip

Only for your network or a VPN? Set public_address to this PC's address on your network, and add answer_as_reached = true: players on the VPN are then given the server's address on the VPN, and players on your network its address there.

3. Let it through Windows Firewall

Open PowerShell as administrator (right-click Start › Terminal (Admin)) and run, with your path:

New-NetFirewallRule -DisplayName "Cross-Com server" -Direction Inbound -Program "C:\CrossCom\crosscom-server.exe" -Action Allow -Profile Any

(Or simply start the server and answer Windows' prompt with Allow, ticking both private and public networks.) If you move or rename the program, the rule has to follow it.

4. Forward the ports

On your router, to this PC's address on your network (how):

  • TCP, any free port outside (80 if your router allows it; 8080 otherwise) → this PC's port 80
  • UDP 21030 → 21030
  • UDP 21031 → 21031

Not needed for a server only on your network or VPN, nor on a PC with a public address of its own.

5. Start it

In the folder, open PowerShell (File Explorer › right-click the folder › Open in Terminal), and run:

.\crosscom-server.exe

It reads crosscom-server.toml from the folder it's started in (or the file --config FILE names). It writes what it does to the window. A good start looks like:

INFO Cross-Com server 0.1.3; players connect to 203.0.113.24
INFO HTTPS on the HTTP port 80 too, certificate 5c1e0b7f93a2…
INFO Online config on http://0.0.0.0:80/OnlineConfigService.svc/GetOnlineConfig
INFO Listening on 0.0.0.0:21030
INFO Listening on 0.0.0.0:21031

Close the window (or press Ctrl+C) to stop it.

6. Give players the join code

The join code is the address players reach the server at, the web port outside (left out when it's 80), #, and the certificate's fingerprint:

203.0.113.24:8080#5c1e0b7f93a2d4c86e0f1b2a3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f7

The fingerprint is on the server's HTTPS on the HTTP port … certificate … line as it starts, or:

(Get-FileHash -Algorithm SHA256 C:\CrossCom\https-certificate.der).Hash.ToLower()

Give players the sign-up code too: the launcher asks for it when they make their account. Join Codes explains to them what to do with both.

Check it from outside

Ask a friend elsewhere to set up with the code: the launcher's Check tells them straight away whether your server answered. The community server can check it too (version 0.1.3 and later): from the server PC, in PowerShell, with your web port outside:

Invoke-RestMethod -Method Post -Uri https://grfs-test.jdevwebb.net/api/check-host -ContentType application/json -Body '{"web_port":8080,"udp_ports":[21030,21031]}'

It answers with your address as the internet sees it, whether the web port answered ("web":"ok"), and each UDP port ("answers":true). It only ever checks the address the question comes from.

Running it at startup

To have the server start with Windows, with nobody signed in, use Task Scheduler:

  1. Task Scheduler › Create Task… (not Basic Task).
  2. General: name it Cross-Com server; choose Run whether user is logged on or not.
  3. Triggers › New: Begin the task: At startup.
  4. Actions › New: Program/script: C:\Windows\System32\cmd.exe; Add arguments: /c crosscom-server.exe >> server.log 2>&1; Start in: C:\CrossCom. (So its output goes to server.log in the folder.)
  5. Settings: untick Stop the task if it runs longer than….
  6. OK, and enter your Windows password when asked.

Also set the PC never to sleep (Settings › System › Power): a sleeping PC drops everyone.

Managing it

From PowerShell in the server's folder (with the server running or not):

Command What it does
.\crosscom-server.exe add-account NAME Makes an account with a password (for a test player or a bot; players make theirs in the launcher). It asks for the password.
.\crosscom-server.exe logs list The logs players' games sent, newest first
.\crosscom-server.exe logs show REPORT One of them (players see their report ID in the launcher's Settings › Logs)
.\crosscom-server.exe connections 30 How joins into matches went in the last 30 days, and which routers had trouble

News for the game's menus: write news.toml in the folder (Server Settings › News). No restart needed.

Backups: copy crosscom.db while the server is stopped.

Updating: stop it, replace crosscom-server.exe with the new release's, start it again. Accounts and stats stay in crosscom.db; the certificate (and so the join code) stays too.

See also

Clone this wiki locally