Unturned II Server Hosting Guide

First you need to download the Unturned II dedicated server from the Tools Menu.

Within Steam:

Library>Tools>Unturned II Dedicated Server

Dedicated%20Server%20Tools
Download and install that.

Once that is installed, browse to that Server’s local files.

Right Click Unturned II Dedicated Server>Properties>Local Files>Browse Local Files


Go to the top of Windows Explorer and copy that path.

You could do this from command line, but we will make a batch file.

First step is to open up notepad. Create a new text document, this document will be used to launch your server so name and save it appropriately.

Example:

BatchFile

Explanation of Batch File

The first line “cd C:\Program Files (x86)\Steam\steamapps\common\U4DS” is telling the command line to change the directory to that location where the exe is stored.

The second line runs the exe with the listed launch options. First launch option is the map name. Second contains the name of the server for it to show up in the server browser, and the last tells the exe to open a log so you can see what is happening on the server.

It is better to create a batch file instead of simply pasting those launch options into the Unturned II dedicated server properties because you can only have one steam session launched at a time. So launch the dedicated server from steam, you can’t play on it as well. However launching the exe directly through a batch file circumnavigates this limitation.

Last step, change that .txt file extension to .bat and double-click the icon to launch it!


image
image

You should see a command prompt window appear for whichever map you chose to host and you are done.

Swap out

In order for other player’s to join your server who aren’t on LAN you will either need to utilize Hamachi or some other virtual LAN adapter, or port forward 7777, 7778 and 27015 on your router.

EDIT: Updated instructions from Nelson

Hope this helps anyone looking to spin up a server for themselves.

22 Likes

@SDGNelson Just tried testing this method. Server seems to launch normally but joining it doesn’t work.

Error:
There was an error during connection to the game.
Host did not reply to handshake.

Looks like I can’t join the server locally either, through my IPv4 which eliminates port forwarding, or firewall as the issue. Is this method still the recommended way to host servers? U4Server.exe is up to date as well, Unturned version and build #.

2 Likes

With Steam integration enabled the only differences are that port 7777, 7778 and 27015 are used. Players should “find session at address” with the 27015 port.

Some additional tips:

Running a client on the same machine as dedicated server(s) requires specifying the -DisableSteamServerInit launch option. Running a listen server does not require this however.

Specifying a dedicated server name is currently done with the -SteamServerName=“My Server” launch option. In the future this will be exposed in a more user-friendly manner.

12 Likes

Is it possible to host a server on another drive, like a D: drive or E: drive for example?

1 Like

Certainly. I don’t see why not. But your file path will look different than what I have there.

Ended up getting it working on an Azure VM. Not sure what the issue was before. When I find out what I did wrong I will update it here. Also I will improve the guide with attached files and images.

Just had the time to update it.

eyy this is really helpful

1 Like

@SDGNelson What are the new maps called for server hosting? Thanks!

When attempting to run the server with -DisableSteamServerInit, it crashes with a FATAL ERROR, error. I’m going to keep trying, and maybe try on my 2nd PC.

I should also add that from experience with Unreal Engine, the fatal error is because a line of code somewhere is messed up. I bet a piece of code doesn’t like the -DisableSteamServerInit cmd.

[2020.01.14-20.47.00:486][ 0]LogWindows: Error: === Critical error: ===
[2020.01.14-20.47.00:487][ 0]LogWindows: Error:
[2020.01.14-20.47.00:488][ 0]LogWindows: Error: Fatal error!
[2020.01.14-20.47.00:488][ 0]LogWindows: Error:
[2020.01.14-20.47.00:489][ 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000
[2020.01.14-20.47.00:489][ 0]LogWindows: Error:
[2020.01.14-20.47.00:490][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0dac56a U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:490][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0dea2db U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:491][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0dc1e26 U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:491][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0df491b U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:492][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0f5eafd U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:492][ 0]LogWindows: Error: [Callstack] 0x00007ff7f1481aac U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:493][ 0]LogWindows: Error: [Callstack] 0x00007ff7f1fb17e5 U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:493][ 0]LogWindows: Error: [Callstack] 0x00007ff7f1ef5d64 U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:494][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0c2b67a U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:494][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0c3073c U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:496][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0c3079a U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:496][ 0]LogWindows: Error: [Callstack] 0x00007ff7f0c391e9 U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:497][ 0]LogWindows: Error: [Callstack] 0x00007ff7f2a703a2 U4Server-Win64-Shipping.exe!UnknownFunction
[2020.01.14-20.47.00:497][ 0]LogWindows: Error: [Callstack] 0x00007ffab2e37bd4 KERNEL32.DLL!UnknownFunction
[2020.01.14-20.47.00:498][ 0]LogWindows: Error: [Callstack] 0x00007ffab2faced1 ntdll.dll!UnknownFunction
[2020.01.14-20.47.00:499][ 0]LogWindows: Error:
[2020.01.14-20.47.00:501][ 0]LogExit: Executing StaticShutdownAfterError

Yo hold can you explain me more detailed. Because i dont get it very good. So i was makin a server yestarday. I just want to make normal pure vanilla srrver on hawaii. I made everything like the guy say on youtube. Server is working but only for lan. So i found out that i need to port forward. I did that but i dont see it in internet again. I was looking and fixing and trying for like 6 7 hours in one piece and didnt do anything. But i saw that guys on ytb has virtual server and i dont have that. I only have DMZ and port forwarding. I went in port forwarding or diversion and i did everything like the guy says. After that i went into firewall settings and made new rule for tcp and udp . And still dosent f****** dosent work im gonna have meental breakedow. I dont wanna pay servers because im gonna run it 3 4 hours daily when im on at the evning and i aint payg 7$ for 3 4 hours a day. Can you help me or do you know what is the problem?

Sorry for bad english Im from Croatia.

Hey Rick,

This guide is for Unturned II not Unturned 3.0

1 Like

Oh hey Gopher. Im the guy that played on the Warzone server with you. You wanted to make a dedicated server and i never found you again. Until now haha.

A post was split to a new topic: Changing server params?