Free Starbound Server: Windows & Linux Self-Hosting Guide
In this article
This guide walks you through setting up a free Starbound server on your own Windows or Linux machine. You'll be able to play with friends without paying a hosting service, and you'll have full control over your game world. Before you begin, make sure you own a copy of Starbound on Steam (the server software is free, but the game itself is required to play). You'll also need a computer that can run the server, ideally with a decent internet connection and a public IP address or port forwarding capability.
What You'll Need
- A copy of Starbound on Steam (for the client; the server files are free).
- A computer running Windows 7 or later, or a Linux distribution (Ubuntu, Debian, CentOS, etc.) with a 64-bit processor.
- At least 4 GB of RAM (8 GB recommended for larger groups).
- About 2 GB of free disk space for the server files and world data.
- Router access to forward ports (default: 21025 TCP) if you want friends outside your local network to join.
- Basic command-line comfort for Linux; for Windows, you can use the graphical tools.
Step-by-Step
- Download the Starbound Server Files
- Windows: Open Steam and go to your Library. In the top-left, change the filter from "Games" to "Tools". Find "Starbound Server" in the list and install it. It will appear in your Steam library under "Tools" after installation.
- Linux: Use the SteamCMD command-line tool. Install SteamCMD (e.g.,
sudo apt install steamcmdon Ubuntu), then run it and log in asanonymous. Use the commandforce_install_dir ./starbound_serverto set the install directory, thenapp_update 211820 validateto download the server files. This is the same App ID used for the dedicated server.
- Locate the Server Files
- Windows: By default, the server files are installed to
C:\Program Files (x86)\Steam\steamapps\common\Starbound Server. Inside, you'll findstarbound_server.exe. - Linux: Navigate to the directory you set with
force_install_dir(e.g.,~/starbound_server). The executable isstarbound_server(no extension).
- Windows: By default, the server files are installed to
- Configure the Server
- In the server folder, you'll see a file named
starbound_server.config. Open it with a text editor (Notepad on Windows, nano/vim on Linux). - Set the
serverNameto something friendly (e.g., "My Server"). - Set
maxPlayersto your desired player limit (e.g., 8). - If you want to keep your world private, set
allowAnonymousConnectionstotrue(default) and use a password viaserverPasswordif needed. - Save the file and close it.
- In the server folder, you'll see a file named
- Run the Server
- Windows: Double-click
starbound_server.exe. A console window will open and start generating the universe. Wait until you see the line "Server started on port 21025" (or similar). Keep this window open while the server runs. - Linux: From the server directory, run
./starbound_server. You may need to make it executable first withchmod +x starbound_server. The server will run in the foreground. To keep it running after you log out, usescreenortmux.
- Windows: Double-click
- Connect to Your Server
- Launch Starbound on your computer. From the main menu, select "Multiplayer" and then "Add Server".
- Enter
localhostas the IP address (if testing on the same machine) or your local IP (e.g., 192.168.1.10) if you're on the same network. - Connect. If the server is running, you'll see your character spawn in the world.
- Allow Friends to Connect (Port Forwarding)
- Find your router's IP (usually 192.168.1.1 or 192.168.0.1) and log into its admin panel.
- Look for "Port Forwarding" or "Virtual Server" settings.
- Create a new rule: forward TCP port 21025 to your computer's local IP address (e.g., 192.168.1.10). Save the rule.
- Find your public IP by searching "what's my IP" in a browser. Give your friends this IP and port (e.g., 123.45.67.89:21025).
- Keep the Server Running (Optional)
- Windows: You can minimize the console window, but if you close it, the server stops. For a persistent server, consider running it as a Windows service using tools like NSSM.
- Linux: Use
screen -S starboundto start a virtual terminal, run the server, then detach withCtrl+AthenD. To reattach, usescreen -r starbound.
Common Mistakes
- Firewall blocking the port: Windows Firewall or ufw on Linux may block port 21025. Allow inbound connections on that port.
- Forgetting to forward the port: Even if the server runs, friends can't join unless port 21025 is forwarded to your machine.
- Using the wrong IP: Giving friends your local IP (like 192.168.x.x) won't work from outside your network. Use your public IP.
- Running the server from a folder with spaces: On Windows, avoid installing to paths with spaces (e.g., "Starbound Server" is fine, but "My Server" might cause issues). Use the default path.
- Not updating the server: After a game update, the server may need to be updated too. On Steam, right-click "Starbound Server" and select "Update". On Linux, re-run
app_update 211820.
Tips
- Back up your universe: Regularly copy the
universefolder (inside the server directory) to a safe location. This prevents losing progress if the server crashes. - Use a static IP: Set a static local IP for your server machine so port forwarding doesn't break when your router assigns a new IP.
- Monitor server logs: The console output shows player connections and errors. Keep an eye on it for troubleshooting.
- Adjust server settings: You can tweak difficulty, spawn rate, and other gameplay settings in the config file. Test changes on a backup world first.
- Consider using a dedicated machine: Running the server on the same machine you play on can cause lag. If possible, use a separate old PC or a VPS.
Troubleshooting
- Server won't start: Check that the server files are fully downloaded and that you have the latest version. Look for error messages in the console. On Linux, ensure the executable has permission to run (
chmod +x). - Can't connect from the same machine: Try using
127.0.0.1instead oflocalhost. If that fails, check that the server is actually running (look for the "Server started" message). - Friends can't connect: Verify port forwarding is correct (TCP 21025). Also, check that your public IP hasn't changed. Use a service like
whatismyip.comto confirm. Temporarily disable the firewall to test. - Server crashes on world load: Delete the
universefolder to generate a fresh world (backup first). This often fixes corrupted world data. - High ping or lag: Ensure your internet upload speed is sufficient (at least 5 Mbps for several players). Close bandwidth-heavy applications on the server machine.
- Mods not working: If you're using mods, make sure they are installed on both the server and the client. Server mods go in the
modsfolder inside the server directory.
Frequently Asked Questions
Is the Starbound server really free?
Yes, the dedicated server software is free to download and run. You only need to own the game client to play.
Can I run the server on a Raspberry Pi?
Technically yes, but it's not recommended. The server requires a decent CPU and RAM; a Pi 4 with 4GB RAM can handle a small group (2-3 players) but may struggle with larger worlds.
Do I need a static public IP?
No, but it helps. If your IP changes, you'll need to give your friends the new IP each time. You can use a dynamic DNS service to get a hostname that always points to your IP.
Can I run multiple servers on one machine?
Yes, by running multiple instances with different ports. Copy the server folder, change the serverPort in the config (e.g., 21026), and start each instance separately.
How do I update the server?
On Windows, right-click "Starbound Server" in Steam and select "Update". On Linux, re-run the SteamCMD update command. Your world data is preserved.
Can I use a password for my server?
Yes, set serverPassword in the config file. Players will be prompted to enter it when connecting.