How to Create a Stationeers Server Guide: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
Standards cleanup: config lines to pre/code, spacer/HTML removal, heading normalization (corpus audit 2026-07-21)
[wiki:wiki-operator] Fixes from the review of the rewording: claims, example addresses, names and wording (approved by Ryan, Nov 19)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Creating a Stationeers game server is an easy process that can be done from either a dedicated server or your home computer.
{{#seo:
 
|title=Stationeers Dedicated Server: Setup, Ports and Commands
== Option #1: Renting a Stationeers server (see example control panel below!) ==
|description=Set up a Stationeers dedicated server with SteamCMD: the start line, world IDs, the one port to open, setting.xml and the admin console commands.
 
}}
[[File:Control panel.gif|none|link=https://www.survivalservers.com/sspanel/?game=stationeers&trckaff=3881&trckit=WIKI]]
== Hosting a Stationeers server yourself ==
 
== Server requirements ==
[[File:Stationeers_game_server.png|none|link=https://www.survivalservers.com/sspanel/?game=stationeers&trckaff=3881&trckit=WIKI]]
 
== Option #2: Creating a Stationeers Server From Your Home Computer or Dedicated Server ==
== Server Requirements ==
Windows 7, 8, 8.1, Server 2008, Server 2012 & 64-Bit
Windows 7, 8, 8.1, Server 2008, Server 2012 & 64-Bit


Quad Core processor (requires up to 2 full cores)
Quad Core processor (requires up to 2 full cores)


Up to 3GB memory (currently uses around 6GB memory minimum and up to 15GB of memory for a full server)
Up to 3GB memory


2GB disk space (install folder)
5GB disk space (install folder)


[https://www.microsoft.com/en-us/download/details.aspx?id=48145 Visual C++ Redistributable for Visual Studio 2015]
[https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist Visual C++ Redistributable for Visual Studio 2019]


Steam running
Steam doesn't need to be running (the server never starts it).


== Step 1: Fetching Game Server files from SteamCMD ==
== Step 1: Download the server files with SteamCMD ==


The best method to get game server dedicated hosting files is via [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD].
The best way to get the server files is with [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD].


# Create a folder where you wish to store your Stationeers game server hosting files
# Create a folder for your Stationeers server files.
# Inside of the folder, place the newly downloading SteamCMD.exe file
# Inside the folder, place the SteamCMD.exe file you downloaded.
# Create a batch file named '''SteamCMD.bat'''
# Create a batch file named '''SteamCMD.bat'''
# Place the following code in this batch file:
# Place the following code in this batch file:
::: @echo off
::: @echo off
::: start "" steamcmd.exe +login anonymous +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +app_update 600760 validate +quit
::: start "" steamcmd.exe +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +login anonymous +app_update 600760 validate +quit
# Right-click SteamCMD.bat and Run as Administrator
# Right-click SteamCMD.bat and Run as Administrator
# Your game server files should be completely downloaded by now
# When the SteamCMD window closes, the server files are downloaded.


== Step 1 (alternate method): Locating Game Server Files on Hard Drive ==
== Step 1 (alternate method): Finding the game files on your hard drive ==


You can host Stationeers directly from the game itself. If you want to change any settings, locate your common folder:
You can host Stationeers from the game itself. To change any settings, find your common folder:


# Right-click Stationeers from Steam, select '''Properties'''
# In Steam, right-click Stationeers and select '''Properties'''.
# Click '''Local Files''' tab
# Click the '''Installed Files''' tab.
# Click '''Browse Local Files'' button
# Click the '''Browse''' button.


== Step 2: Setting up a Stationeers Dedicated Server ==
== Step 2: Setting up a Stationeers dedicated server ==


# Create a batch file named '''StationeersServer.bat''' in your newly created SteamCMD folder (Step 1) or your Steam common folder (Step 1: (alternate method)).
# Create a batch file named '''StationeersServer.bat''' in your SteamCMD folder from Step 1, or in your Steam common folder (Step 1, alternate method).
# Place the following code in this batch file:
# Place the following code in this batch file:
::: start "C:\stationeersserver\Stationeers\rocketstation_DedicatedServer.exe" -batchmode -nographics -autostart
::: start "" "C:\stationeersserver\Stationeers\rocketstation_DedicatedServer.exe" -file start Stationeers Mars2 -settings ServerName Stationeers GamePort 27016 ServerMaxPlayers 30 ServerVisible true


# Set up a C:\stationeersserver\Stationeers\default.ini file with
# Put your settings after -settings in that line, as name and value pairs. There's no default.ini anymore: the server saves them to C:\stationeersserver\Stationeers\setting.xml.
::: [SERVER]
::: ServerName Stationeers
::: SERVERNAME=Stationeers
::: GamePort 27016
::: GAMEPORT=27500
::: ServerPassword yourpassword (leave it out for no password)
::: UPDATERPORT=27015
::: PASSWORD=
:::  
:::  
::: MAPNAME=Mars
::: World: the word after the save name in -file start (Lunar, Mars2, Europa3, MimasHerschel, Venus or Vulcan2)
::: DESCRIPTION=Stationeers
::: ServerMaxPlayers 30
::: MAXPLAYER=30
::: ServerVisible true (shows the server in the in-game server list)
:::  
:::  
::: [RCON]
::: ServerAuthSecret yoursecret (lets you run admin commands from inside the game)
::: RCONPASSWORD=stationeers
::: RCONIP=127.0.0.1
 
== Step 3: Port Forwarding ==
Add an incoming rule to your Windows Firewall to allow UDP port 27500 as well as 27015 (or whichever ports you are using).
 
You may additionally need to add a forwarding rule to your network router. You can use [http://PortForward.com/ PortForward.com] to read how to do this.
 
== How to Join Your Server (SurvivalServers.com Customers) ==


STEP 1: Update your server to the newest Stationeers version, then click the green update button at the bottom of the panel.  * If you are not a Survival Servers customer ask your game server host about this.
== Step 3: Port forwarding ==
Add an incoming rule to Windows Firewall that allows UDP port 27016, or whichever port you're using.


[[File:UpdatecmdARK.png]]
You may also need to open the port on your home router. [http://PortForward.com/ PortForward.com] shows how.


METHOD 2, STEP 1: Find your server from the in-game server list!
== How to join your server ==


[[File:StationeersServerList.png|750px]]
Step 1: Update your server to the newest Stationeers version: stop it and run SteamCMD.bat from Step 1 again. If you rent your server from a game server host, ask your host about this.


METHOD 2, STEP 2: Right click Steam in the task bar icons of your PC and select servers as pictured below.
Method 2, Step 1: Find your server in the in-game server list.


[[File:Step11.png]]
[[File:StationeersServerList.png|750px|alt=Stationeers Join World screen with the Enter IP:Port here... address box above the server list, from an older version of the game.]]


METHOD 2, STEP 3: Select Stationeers as your game at the bottom. Join your server!
Method 2, Step 2: Or type your server's IP address and port in the box that reads '''Enter IP:Port here...''' on the same Join World screen.


[[File:Step2Stationeers.png]]
Method 2, Step 3: Select '''Direct Connect'''. Join your server.


== Configuring your Stationeers Game Server! ==
== Configuring your Stationeers server ==
Now comes the fun part, setting up your Stationeers game server to your liking.


You can find a list of
To change server settings, open '''\Stationeers\setting.xml'''.


To modify game server settings you can open the '''\Stationeers\Default.ini'''
You can change settings in this file as well as in the launch options. Launch options overwrite the settings in the file:
 
You can modify settings in here (in addition to the launch line) - these settings overwrite your launch line settings:


<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; ">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; ">
[SERVER]
<ServerName>Stationeers</ServerName>
SERVERNAME=Stationeers
<GamePort>27016</GamePort>
GAMEPORT=27500
<ServerPassword />
UPDATERPORT=27015
PASSWORD=


MAPNAME=Mars
<ServerMaxPlayers>30</ServerMaxPlayers>
DESCRIPTION=Stationeers
<ServerVisible>true</ServerVisible>
MAXPLAYER=30


[RCON]
<ServerAuthSecret />
RCONPASSWORD=stationeers
RCONIP=127.0.0.1
</pre>
</pre>


== Stationeers Dedicated Server Configuration Variables ==
== Stationeers dedicated server launch options ==
-batchmode Dedicated server runs without UI and start to listen port.
-batchmode The dedicated server runs without a game window and starts listening on its port.
 
-nograpics When running in batch mode, do not initialize graphics device at all.
This makes it possible to run your automated workflows
on machines that don’t even have a GPU.
 
-autostart Dedicated server start to listen port without player input.
It's always enabled on Linux dedicated server.
 
-autosaveinterval integer Save world in every interval.
 
-creator int64 Set creator's steam id as gamedata and key-value.
This is for future integration of server instancing.


-worldname string Load and save game data automatically from existing file.
-nographics In batch mode, the server doesn't start the graphics device at all, so it can run on machines that don't even have a GPU.


-worldtype string Worldtype(Space, Mars, Terrain)
-file start string string The dedicated server loads a save and starts listening on its port with no player input.
It loads the newest save with that name, or builds a new world if there's none.


-loadworld string Load world from saved file. If loadworld is enabled,
-settings SaveInterval integer Saves the world at this interval (in seconds, 300 by default).
worldname command is ignored.


-gameport integer UDP port for game. Avoid to set 27015-27020.
-file start [save name] [world ID] World ID (Lunar, Mars2, Europa3, MimasHerschel, Venus, Vulcan2)
It's steam's local server query ports.


-updateport  integer UDP port for steam query
-settings GamePort integer UDP port for the game (27016 by default).


-servername string Server title.
-settings ServerName string Server title.


-basedirectory string Absolute base directory for custom profile
Config Path : C:\stationeersserver\Stationeers\setting.xml
Ex) -basedirectory C:\Profile\Player1
Save Path : C:\stationeersserver\Stationeers\saves\[save name]
Config Path : C:\Profile\Player1\default.ini
Save Path : C:\Profile\Player1\saves\[worldname]


== Stationeers Admin Commands ==
== Stationeers admin commands ==
You can send commands on web browser.
You can type commands in the dedicated server's window.
Link : http://[dedicated server address]:[GamePort]
In game: set the same secret with settings ServerAuthSecret <secret> in the F3 console, then type serverrun and the command.


help
help
Print help commands
Prints the help commands.


login <password>
serverrun <command>
RCONPASSWORD is defined in default.ini. Default rcon password is stationeers.
Runs a command on the server from the in-game F3 console. ServerAuthSecret must match on the server and in your game.


save <worldname>
save [worldname]
Save world to basedirectory
Saves the world to the saves folder.


shutdown [-m message] [-t timeout in seconds]
quit
Shutdown dedicated server. if you run this command without any parameters, dedicated server will shutdown immediately. Countdown starts from 10 seconds example -
Shuts down the dedicated server right away, without saving. Run save first.
shutdown -m "Server will shutdown in 30 seconds" -t 30


notice <message>
announce <message>
Notice to all players. Example:
Shows a pop-up notice to all players. Example:
notice "Welcome to Stationeers!"
announce "Welcome to Stationeers!"


status
status
Display game stat and player lists
Shows the world name, game state, uptime and pause status (network clients lists the players).


ban <steamId> <timeout>
ban <steamId>
Ban player for specific amount of time. Timeout is double in hour.
Bans a player, even one who's offline. The ban has no time limit and is saved in Blacklist.txt. Example:
0.5 is 30 minutes. 0 is infinite. Example:
ban 76561198299941358
ban 76561198299941358 0.5


unban <steamId>
ban refresh
Remove player from the ban lists
Reloads the ban list. To unban a player, delete their ID from Blacklist.txt in the server folder, then run ban refresh


kick <steamId>
kick <steamId>
Kick player from the current server
Kicks a player from the server.


== Location of World Save Data ==
== Location of world save data ==
saves
saves


== Tools ==
:Coming soon.
__NOTOC__
__NOTOC__

Latest revision as of 12:14, 19 November 2026

Hosting a Stationeers server yourself

Server requirements

Windows 7, 8, 8.1, Server 2008, Server 2012 & 64-Bit

Quad Core processor (requires up to 2 full cores)

Up to 3GB memory

5GB disk space (install folder)

Visual C++ Redistributable for Visual Studio 2019

Steam doesn't need to be running (the server never starts it).

Step 1: Download the server files with SteamCMD

The best way to get the server files is with SteamCMD.

  1. Create a folder for your Stationeers server files.
  2. Inside the folder, place the SteamCMD.exe file you downloaded.
  3. Create a batch file named SteamCMD.bat
  4. Place the following code in this batch file:
@echo off
start "" steamcmd.exe +force_install_dir "C:\Some\Path\Where\You\Want\Game\Server\Files\To\Go" +login anonymous +app_update 600760 validate +quit
  1. Right-click SteamCMD.bat and Run as Administrator
  2. When the SteamCMD window closes, the server files are downloaded.

Step 1 (alternate method): Finding the game files on your hard drive

You can host Stationeers from the game itself. To change any settings, find your common folder:

  1. In Steam, right-click Stationeers and select Properties.
  2. Click the Installed Files tab.
  3. Click the Browse button.

Step 2: Setting up a Stationeers dedicated server

  1. Create a batch file named StationeersServer.bat in your SteamCMD folder from Step 1, or in your Steam common folder (Step 1, alternate method).
  2. Place the following code in this batch file:
start "" "C:\stationeersserver\Stationeers\rocketstation_DedicatedServer.exe" -file start Stationeers Mars2 -settings ServerName Stationeers GamePort 27016 ServerMaxPlayers 30 ServerVisible true
  1. Put your settings after -settings in that line, as name and value pairs. There's no default.ini anymore: the server saves them to C:\stationeersserver\Stationeers\setting.xml.
ServerName Stationeers
GamePort 27016
ServerPassword yourpassword (leave it out for no password)
World: the word after the save name in -file start (Lunar, Mars2, Europa3, MimasHerschel, Venus or Vulcan2)
ServerMaxPlayers 30
ServerVisible true (shows the server in the in-game server list)
ServerAuthSecret yoursecret (lets you run admin commands from inside the game)

Step 3: Port forwarding

Add an incoming rule to Windows Firewall that allows UDP port 27016, or whichever port you're using.

You may also need to open the port on your home router. PortForward.com shows how.

How to join your server

Step 1: Update your server to the newest Stationeers version: stop it and run SteamCMD.bat from Step 1 again. If you rent your server from a game server host, ask your host about this.

Method 2, Step 1: Find your server in the in-game server list.

Stationeers Join World screen with the Enter IP:Port here... address box above the server list, from an older version of the game.

Method 2, Step 2: Or type your server's IP address and port in the box that reads Enter IP:Port here... on the same Join World screen.

Method 2, Step 3: Select Direct Connect. Join your server.

Configuring your Stationeers server

To change server settings, open \Stationeers\setting.xml.

You can change settings in this file as well as in the launch options. Launch options overwrite the settings in the file:

<ServerName>Stationeers</ServerName>
<GamePort>27016</GamePort>
<ServerPassword />

<ServerMaxPlayers>30</ServerMaxPlayers>
<ServerVisible>true</ServerVisible>

<ServerAuthSecret />

Stationeers dedicated server launch options

-batchmode The dedicated server runs without a game window and starts listening on its port.

-nographics In batch mode, the server doesn't start the graphics device at all, so it can run on machines that don't even have a GPU.

-file start string string The dedicated server loads a save and starts listening on its port with no player input. It loads the newest save with that name, or builds a new world if there's none.

-settings SaveInterval integer Saves the world at this interval (in seconds, 300 by default).

-file start [save name] [world ID] World ID (Lunar, Mars2, Europa3, MimasHerschel, Venus, Vulcan2)

-settings GamePort integer UDP port for the game (27016 by default).

-settings ServerName string Server title.

Config Path : C:\stationeersserver\Stationeers\setting.xml Save Path : C:\stationeersserver\Stationeers\saves\[save name]

Stationeers admin commands

You can type commands in the dedicated server's window. In game: set the same secret with settings ServerAuthSecret <secret> in the F3 console, then type serverrun and the command.

help Prints the help commands.

serverrun <command> Runs a command on the server from the in-game F3 console. ServerAuthSecret must match on the server and in your game.

save [worldname] Saves the world to the saves folder.

quit Shuts down the dedicated server right away, without saving. Run save first.

announce <message> Shows a pop-up notice to all players. Example: announce "Welcome to Stationeers!"

status Shows the world name, game state, uptime and pause status (network clients lists the players).

ban <steamId> Bans a player, even one who's offline. The ban has no time limit and is saved in Blacklist.txt. Example: ban 76561198299941358

ban refresh Reloads the ban list. To unban a player, delete their ID from Blacklist.txt in the server folder, then run ban refresh

kick <steamId> Kicks a player from the server.

Location of world save data

saves