Do you have a Windows VPS or Dedicated Server and want to install the Foundry Dedicated Server on it? Then you’re in the right place. This guide explains step-by-step how to set up this service on your server.
First, connect to your VPS via Remote Desktop (RDP). If you need help, use our First Access (RDP) guide.
Once you are on your server, you need to set up SteamCMD to download the necessary Dedicated Server files. SteamCMD is the command-line version (CLI) of the Steam client and the tool that lets you easily download various Steam Workshop and Dedicated Server files. Download SteamCMD from the official Valve website or directly here.
Create a new folder anywhere on your server; we will call it steamcmd here. Go to your Downloads folder, find the recently downloaded steamcmd.zip, and move it into the steamcmd folder. Now extract the file using right-click and Windows’ built-in extraction or with programs like 7zip or WinRAR. In the end, you should have a steamcmd.exe file.
Simply start steamcmd.exe and wait until the installation completes.
Once the message Loading Steam API.... OK appears, everything is successfully completed, and you can start the Foundry Dedicated Server installation in the next section.
After installation, you should be able to enter commands in the steamcmd.exe command line window. First, log in with the user anonymous by entering the following command: login anonymous
Once logged in, you can start downloading the files.
Optional: You can set your preferred installation directory with the command force_install_dir [path], replacing [path] with your desired path. Example:
force_install_dir C:\Foundry-Server
Start the download now with the command app_update 2915550. The app ID 2915550 stands for the Foundry application.
Please do not interrupt the process before completion to avoid errors. It takes a moment, but patience pays off! :)
After a successful download, go to the download directory where all server files are located. There you can start the FoundryDedicatedServerLauncher.exe to launch the server. However, we recommend setting up port forwarding and server configuration first.
To make your server publicly accessible, you need to set up port forwarding for the ports used by the Dedicated Server. You can do this either directly via PowerShell commands, which is easier, or the classic way via Windows Defender Firewall.
Open Windows Search and look for PowerShell. Right-click and select Run as administrator to have the necessary rights and ensure everything works smoothly.
Make sure to start PowerShell in administrator mode; otherwise, the settings will not be applied correctly.
Now enter the following commands into PowerShell:
New-NetFirewallRule -DisplayName "Foundry Server" -Direction Inbound -LocalPort 3724,27015 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "Foundry Server" -Direction Inbound -LocalPort 3724,27015 -Protocol UDP -Action Allow
New-NetFirewallRule -DisplayName "Foundry Server" -Direction Outbound -LocalPort 3724,27015 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "Foundry Server" -Direction Outbound -LocalPort 3724,27015 -Protocol UDP -Action Allow
These commands automatically create the firewall rules your Foundry Server needs to be publicly reachable.
Open Windows Firewall with Advanced Security via Windows Search. If you only see the basic firewall, click Advanced Settings to open the correct window.
Create new rules for your Foundry Server. Click on inbound and outbound rules and add the following protocols and ports:
- TCP inbound and outbound: 3724, 27015
- UDP inbound and outbound: 3724, 27015
If you need help, check out our Port Forwarding (Firewall) guide.
After adding the rules, your server is reachable. You can connect using your server’s IP address. In the main menu, go to Multiplayer, select IP Direct Connect, and enter your IP address and port 3724 (default).
We recommend configuring the server settings before connecting.
So far, you have completed the basic installation of your Foundry Server. You can make further settings via a configuration file. Go to your game folder and create (if not already present) a new file named app.cfg in the main directory. This is located in the same folder as FoundryDedicatedServerLauncher.exe.
Open app.cfg with Notepad or an editor of your choice and add the desired configuration parameters. Each parameter goes on a new line with an equals sign and the value you want to set.
Here is an example with three settings:
server_world_name=ZAPDocsTest
server_name=ZAP-Hosting Docs Test
server_max_players=10
All available options and their meanings can be found in our Server Configuration guide.
Now you can start your server. Go to the main directory and launch FoundryDedicatedServerLauncher.exe. This opens the server console in a command line window and starts the server.
Connect directly via your IP by going in-game to Multiplayer -> IP Direct Connect and entering your server IP and port 3724 (default, which you opened).
If you want your server to appear in the server list, add the parameters server_name and server_is_public to the configuration file. Save the file and restart the server.
Congratulations, you have successfully installed Foundry on your Windows Dedicated Server!