How to make and set up Unturned server to play with friends

Making an Unturned server

Do you want to create your own Unturned server to play with friends for free? You've come to the right place! In this article, we're going to cover all of the aspects of making your own Unturned server and sharing it with other players. We're going through each step, starting from installing your server, configuring it, and inviting your friends.

Unturned offers to host a server using Unturned Dedicated Server tool (U3DS). You can install it through SteamCMD or Steam Library. It's recommended to use SteamCMD because If you're using Steam Library you may face the issues such as:

  • You can't host multiple servers at once.
  • The server tool uses the same executable name as the game itself, so if you close the game while the server is running, Steam may still think the game is open. This can lead to issues, like Steam not allowing you to relaunch the game until the server is also closed.

Installing U3DS with Steam Library

To make your Unturned server using Steam library search for Unturned Dedicated Server or go to tools, select and install Unturned Dedicated Server tool. Navigate to server files directory -> Right click on the U3DS icon, select Properties -> Installed files -> Browse. Your server files are now installed.

Installing U3DS using SteamCMD

To install U3DS with SteamCMD you need to download an archieve and extract the contents to any folder on your PC. Run steamcmd.exe to install SteamCMD. Enter the following commands in the console to install U3DS.

Installing U3DS:
Connect to Steam as anonymous
login anonymous
Install/Update Unturned Server
app_update 1110390
Quit the console
quit

Setting up an Unturned Server

After you successfully installed the server files, we can launch our first server. Go to:

U3DS tool directory:
Your server Folder/steamapps/common/U3DS
file extension name

Before continuing the creation of the server, make sure you have enabled file name extensions. You can turn this on in Windows explorer by clicking View and checking the box for File name extension.

Find ExampleServer.bat, copy it (Ctrl+C), and paste the copied file (Ctrl+V). Rename this file as you wish; this will be a launcher your server (e.g., Wikbase Server 1.bat) Edit this file by right-clicking and selecting Edit. You can deletes all lines starting with the word rem. In the end, your .bat file should look like this:

Wikbase Server 1.bat:
@echo off
start "" "%~dp0ServerHelper.bat" +LanServer/Wikbase server
exit

If you want to make your server available not only to your friends but to other players as well, you need to change +LanServer to +InternetServer. If you only want to play with friends, leave it as it is by default. Close the file and run the script by double-clicking it.

unturned firewall

If a firewall window appears, click the Allow Access button to continue the installation. The installation is complete when you see Loading level: 100%. At this point, you can start playing on your own server. Congrats! To join your server, you need to copy the server code.

Copy server code:
CopyServerCode

After that, you and your friends can play together. Click Play -> Connect Directly, paste your server code (Ctrl+V), and click Connect. If you close the console with the launched server, the server will be turned off as well. To turn off the server, type the following command:

Turning off a server:
shutdown

We have launched our server, but it's not completely set up yet. First of all, if you want to make your server visible on the server list for other players to connect, you need to set up a Login Token and Fake IP.

Generating Login Token

According to Steam rules, you account must not be limited (this means you need to deposit at least $5 and verify your phone number). Otherwise, you cannot make your server visible on the server list or invite all players (you can still play with friends for free, so skip this part if you're not planning to invite other players).

To generate a Login Token visit Steam Game Server Account Management , log in to your Steam account, and in the App ID text field, type Unturned ID, which is 304930, then click Create. Copy the generated login token and go to the following location in your server's folder:

Commands.dat location:
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer\Server

To generate a Login Token Open the Commands.dat file with any text editor on your PC, and paste the login token as shown below:

Login Token:
Setting up a login token
GSLT B067E39686DC253054CE91F2387C4FF7

Save the file (Ctrl+S) and close it. We're almost done, I promise! :) The last step to make our server available to other players is to set up a Fake IP.

Config.json location:
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer\

Open up the Config.json file and find the next line: "Use_FakeIP": false you have to set it to true:

Config.json:
Change the next line to true value
"Use_FakeIP": true

The basic configuration to make our server available to all players is now complete. Now, if you want to take it a step further, Unturned offers additional customization options for your server. Remember that most configurations are controlled in the following U3DS files:

  1. Commands.dat is for basic configuration and customization.
  2. Config.json is responsible for controlling the loot multiplier, health of zombies and many other features.
  3. WorkshopDownloadConfig.json enables you to install mods on your server.

Configuring Commands.dat for Unturned Server

Many basic options, like the server map, name, and password, can be set up in the Commands.dat file.

Commands.dat location:
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer\Server

You can edit Commands.dat with any text editor on your PC. To make changes, add the necessary lines to this file, save it (Ctrl+S), and restart the server (to restart, close the console if it’s open, and then run your server.bat file).

List of all options for Commands.dat Unturned file

Command Example Description
Name [text]
name Wikbase Server
Sets a name for your Unturned server
Port [Number]
port 27015
Sets a port for your Unturned server
PvE [ON | OFF]
pve on
Turning off player versus player combat, enables player versus environment mode.
Owner [SteamID]
owner 7654219XXXXXXXX
Gives an admin role for a chosen SteamID.
Perspective [First | Third | Both | Vehicle]
perspective both
Decides if players can use first, third or both perspectives. "Vehicle" enables third perspective only when you’re in a vehicle.
Queue_Size [0-64]
queue_size 20
Sets the maximum connection in query for your server.
Welcome [Text]/[R]/[G]/[B]
hello, gamer/25/52/255
Defines a welcome message displayed to clients upon connection.
Whitelisted [ON | OFF]
whitelisted on
Restricts server access to permitted players only.
Bind[IP]
bind 0.0.0.0
Binds the specified internal IP to the socket.
Sync [ON | OFF]
sync on
Enables players to synchronize savedata across your servers.
Chatrate [0-60 in seconds]
chatrate 15
Sets a cooldown of 10 seconds between chat messages.
Cheats [ON/OFF]
cheats on
Enables the usage of cheat commands.
Cycle [seconds]
Cycle 3600
Sets the length of the day/night cycle to your period of time.
Filter
filter
Filters out players with non-English, non-alphanumeric names.
Mode [easy | normal | hard]
mode hard
Assigns the difficulty of the server.
GameMode [Class Name]
gamemode survival
Assigns the game mode of the server.
Map [Level]
map Russia
Sets the map that the server loads on startup.
MaxPlayers [1-200]
maxplayers 36
Sets the maximum number of connections the server is willing to accept.
Gold [ON/OFF]
gold on
Marks the server as joinable only by Gold members.'}, {command: 'GSLT [Login Token]', example: 'GSLT your login token', description: 'Sets the game server login token
Hide_Admins [ON/OFF]
Hide_Admins on
Hides the visibility of admin labels from players.
Loadout [SkillsetID]/[ItemID]...
loadout 2/1176
When spawning, grants players the specified item corresponding to their skillset. If the skillset ID is set to 255, it applies to all skillsets.

In-game Unturned commands

Some commands can be used directly in the game while you’re playing. Many require admin privileges, and new in-game commands can be added with plugins.

As shown below, some commands require item or vehicle IDs. You can find these IDs in our Vehicles ID List and Items ID List.

Command Example Description
/give [item ID]
/give 363
Gives an item with a specified ID.
/vehicle [vehicle ID]
/vehicle 10
Gives a vehicle with a specified ID.
/experience [amount]
/experience 5000
Provides a specific amount of experience points to the player.
/teleport [target]
/teleport wp
Initiates the teleportation to specific map coordinates or to a designated player.
/time
/time 360
Assigns the current time of the day-night cycle, in seconds.
/night
/night
Initiates the setting of nighttime. Can be used in a console.
/day
/day
Initiates the setting of daytime. Can be used in a console.
/kill [player]
/kill desiredPlayer
Eliminates the specified player. Can be used in a console.
/animal [animal ID]
/animal 1
Summons the chosen animal to the game world.
Flag [SteamID | Player]/[Flag]/[Value]
/flag John/friendly/true
Sets the "friendly" flag to true for the player named John. If no player is specified, the flag is set for the executing player.
Kick [SteamID | Player]/[Reason]
/kick desiredPlayer spam
Removes a player from the server; leaving the reason blank kicks them with an "unspecified" message. Console-ready.
Spy [SteamID | Player]
/spy player
Requests a screenshot from the target player and saves it on the caller\'s computer as Spy.jpg.
Slay [SteamID | Player]/[Reason]
/slay player/bad player
Eliminates the designated player in-game and issues a permanent ban. If a player is specified without optional parameters, the banned duration defaults to 31,536,000 seconds (365 days) for an "unspecified" reason.
Weather [None | Disable | Storm | Blizzard | GUID]
/weather blizzard
Controls the current weather cycle.
UnlockNpcAchievement [SteamID | Player]/[AchievementID]
/UnlockNpcAchievement player/2
Bestows a player with the specified achievement. Only certain achievements are eligible for granting.
Unpermit [SteamID]
/unpermit 7652119XXXXXXXXXX
Excludes the designated player from the list of users allowed to join the server.

Installing mods and maps for Unturned

If you want to install some mods for your Unturned server, you need to use WorkshopDownloadConfig file.

WorkshopDownloadConfig location:
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer

In order to install a mod, you have to copy the ID of this mod from the Steam workshop. To do this, visit the page of the mod you want to install and copy the ID from the visited URL as shown below:

installing unturned mod

You have to insert this ID inside brackets []:

WorkshopDownloadConfig.json:
Paste copied IDs into brackets, you can separate mods by using a comma:
"File_IDs": [3251926587,3300803149,3304904264],

Changing a map

If you want to switch a map from PEI to another map you need to use Commands.dat file. In order to change a map to curated, you have to install this map as a mod. Here is a list of IDs for curated maps:

Example Commands.dat:
Setting up a curated map (after you installed it as a mod!)
map Escalation

Console Unturned commands

Once you're running your server you can use some commands right in a console.

CommandExampleDescription
Admin [SteamID | Player]
admin dihardy
Grants administrator privileges to the player named John.
Ban [SteamID | Player]
ban dihardy
Issues a ban to the specified player.
Bans
bans
Initiates a search for a comprehensive list of banned players.
CopyServerCode
CopyServerCode
Copies your server code to share it with your friends and play together.
EffectUI
EffectUI 24
Initiates the spawning of a UI effect for the executing player.
Reload
reload
Refreshes an asset identified by its GUID
Reputation
Reputation dihardy/10000
Grants reputation to a specified player. If no player is specified, the executing player receives the reputation.
Timeout [50-10000]
timeout 250
Sets a maximum ping threshold for the server, resulting in a client being kicked if their ping exceeds the specified limit. If the command is not provided, it defaults to the value set by Max_Ping_Milliseconds, which is typically 750 milliseconds.
Unadmin [SteamID | Player]
unadmin dihardy
Restores the configuration file to its default values.
Unban [SteamID]
unadmin 7656119XXXXXXXXXX
Deletes the designated player from the list of prohibited users not allowed to join the server.
ResetConfig
resetconfig
Restores the configuration file to its default values.
Save
save
Compels a valid save of the server state.
Say [Text]/[R]/[G]/[B]
say text/255/255/255
Conveys a message to all connected clients through in-game chat. If an RGB color is unspecified, it defaults to 0, 255, 0.
Debug
debug
Outputs information on the state of the server to the server console.
Shutdown [Delay]/[Explanation]
shutdown 600/updating
Saves the server state, disconnects clients, and shuts down the server. If executed without optional parameters, it immediately closes with no explanation to disconnected clients.
Help
help
Outputs information on commands, to the server console.
Votify [Vote Allowed Y/N]/[Pass Cooldown]/[Fail Cooldown]/[Vote Duration]/[Vote Percentage]/[Players]
votify y/20/300/20/24
Enables server voting configuration. By default, voting is completely disabled.
Log [Chat Y/N]/[Join/Leave Y/N]/[Death Y/N]/[Anticheat Y/N]
log y/y/y/y
Assigns the console log options.
Modules
modules
Generates a roster of the loaded modules and displays it on the server console.
Permit [SteamID]/[Tag]
permit 7656119XXXXXXXXXX/2
Includes the designated player in the list of allowed server users.
Permits
permits
Displays a roster of players authorized to join the server on the server console.
Players
players
Shows a list of current players on the server on the server console.
Quest [SteamID | Player]/[Quest]
quest dihardy/suspected
Assigns a quest flag to a player. If no player is specified, the executing player receives the quest flag.

Configuring Config.json for Unturned Server

Config.json file is controlling lots of server's settings including loot quantity, health of entities, server customization and lots of other details.

Config.json location:
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer

We're not going to cover all the options in the Config.json file because it's huge and most likely you won't need most of them, but let's take a look at a few options you may find interesting.

Command Example Description
Loot_Chance
"Loot_Chance": 0.5
Quantity of spawned loot, if you want to encrease the amount of spawned loot increate the number for this line.
Monetization
"Monetization": "NonGameplay"
Monetization field is responsible for showing your server on the list. If you do not sell \'pay-to-win\' items, you could set NonGameplay option to make your server visible on the servers list.

Frequently asked questions

We receive a lot of questions from our community , and you may find some of the queries helpful for your specific needs.

How to install a curated map on my Unturned server?

In order to install a curated or modded map on your server, you have to install the map from Steam Workshop, and then add the name of the map to the Commands.dat file. We have an example of how you can install a modded map above.

How do I reset my Unturned server?

To delete everything placed on a map, go to the following location and delete all contents of the map folder:

Deleting map data:
You have to delete the folder with the name of the map you want to wipe.
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer\Level

To delete players inventories, follow the same procedure:

Deleting players data:
You have to select all folders (<b>Ctrl+A</b>) with player's Steam IDs and delete them.
Your server folder\steamapps\common\U3DS\Servers\WikbaseServer\Players
Can I host multiple servers?

Yes, you can! Simply copy the existing server.bat file, which is responsible for launching the server. You can even run both and more servers at the same time!

server 2.bat:
Change the name of the server in copied .bat script
@echo off
start "" "%~dp0ServerHelper.bat" +LanServer/Wikbase The Second server
exit