hosting dedicated servers using client files has been deprecated since june 2019 как исправить
Hosting a Dedicated Server
A Dedicated Server is a method of hosting an Unturned server that does not require the host to be an active player in the game. The host can choose to play on the server, or just leave it running in the background while others play on it. Unlike a Local Server, port forwarding is required. Servers are hosted with the Unturned Dedicated Server app.
A Dedicated Server also allows for vastly increased versatility in configuration of the server. Many server options become available through the Commands.dat, Config.json, server console, and other configuration files.
Contents
Windows Setup:
Shortcut Method (pre-3.20.12.2 only)
The deprecated shortcut method for creating servers only works for versions of the game prior to 3.20.12.2, which had been released on October 14, 2020. Newer versions of the game should only be hosted through the Unturned Dedicated Server app.
How to Host a Dedicated server on Unturned Version 3.0 Above
An example of a finished «Target» field:
4. Finally, run the server. A black console screen should appear. 5. Optional: You can easily update an existing Unturned server by using the following method:
The following text string will create a shortcut that will automatically update your server. This example assumes that you installed your server through SteamCMD, which does not update Unturned automatically.
Classic Setup:
To finish, simply apply changes to the shortcut and double-click it to run it. The game should run and then immediately go to a gray screen. This screen means the server is running fine. If your screen doesn’t go gray and the server does not work, make sure you put the -sv option at the end of your options, otherwise the server may not work.
MacOS Setup:
With Unturned 3.0, the procedure is exactly the same, but after the parameters, you need to add: +secureserver/servername
Replace «secureserver» with «lanserver» if you want a LAN server instead. Replace «servername» with what you want to name your server.
Linux Setup:
New Guide
Go to the install folder and right click and press open in terminal.
press the following
Replace XX with the name of the architecture (x86 if you have a 32 bit computer, x86_64 if 64 bit)
Headless Guide
Note: This is mainly for computers without a GUI (graphical user interface), or if you only have access to the terminal/command line. If you use a VPS with only SSH/PuTTY access, go right ahead! If you are using a GUI, the above option might be better for you, however you might have some slight memory benefits using this method.
To update in Fedora, use
while on Ubuntu, use
The «Add Architecture» is only needed once; to update your system, only the other two is required afterwards.
If on Fedora, you do not have access to dnf, try using yum instead.
Now for installing the libraries. On Fedora, run
If you have an Nvidia GPU, also use
If you only have an Intel Graphic Chipset, or you don’t know what graphics you have, use
For Ubuntu, type each individual line, then hit return. You should have typed in four statements.
If your Fedora/Redhat server throws an architecture error, try adding —setopt=protected_multilib=false to resolve the issue temporarily.
At this time, you will need a steam account. To avoid conflict, create a new dummy Steam account with Unturned added to its library.
There are a lot of things to say here, but I recommend creating a new user similar to the instructions in the old guide. Look at the «Running the Server» part, and ONLY do the first step (two commands).
Most of these steps are going to be the same for Ubuntu/Fedora/Debian/RHEL/CentOS, unless said.
First, let’s create some folders and download SteamCMD.
We need the RocketLauncher to start the server, so we will download it.
If you want RocketMod on your server as well:
You may now remove any excess files, other than start.sh, update.sh, unturned/, steamcmd/, or Steam/.
Now, using an editor of choice (Vi or Nano), open update.sh.
Here is where your Steam account that you created earlier is used. Put the username and password in there. If you want to keep your password private, keep the password string blank.
File installation
A short-term testing method is to use WinSCP or a similar SFTP software to transfer the entire Unturned folder over to the Linux server. The folder is likely located in C:\Program Files (x86)\Steam\SteamApps\common\. The problem with this option is that you must update the server files with WinSCP every time an update is released.
A better option is to use SteamCMD, which is a light-weight Linux Steam client that downloads and updates the required Unturned files.
Running the server
Configuring your Server:
Setup Commands
Use the Commands file if you want to run list of commands that will run each time the server starts. Use a separate line for each command.
The Setup Commands are as follows:
Command Line Options
These parameters are used in launching the server from a command line interface. The order of inputted commands do not matter.
Config.json file
The Config.json file offers a lot of control over the actual server gameplay. It is located in:
It can be edited in the same manner as the commands.dat file. It is in JavaScript Object Notation format, meaning that it is a simple list that connects one string to a variable. In more simple terms, you should only edit text that is within «quotation marks» and after a : colon. Any value that is before the colon is specific to the game and it WILL break your server if you change it.
Connecting:
You should now be able to connect to your own server by running the game through Steam. To do this, click «Play», and then «Connect», and in the IP field, type «localhost», then click «Connect» to join your own server.
If you fail to connect to your own server, try installing SteamVR (found under tools in Steam).
Note: Other players will not use «localhost», only you will. Other players will use your EXTERNAL IP to connect to your server. Find your external IP by visiting a site such as WhatIsMyIP.
Firewall
If you have correctly set up your server and can’t even connect to it, you might want to check if your firewall is blocking the port. On Windows, it shouldn’t be that hard; open Control Panel, Security, and click «Allow a Program». Here, you can choose the Unturned application, and voila!
For MacOS, open System Preferences. Go to Security and Privacy, Firewall, then unlock the settings via the padlock at the bottom left of the window. Next, go to Firewall Options, scroll down the list, click on Unturned, and on the right of it, make sure it says «Allow incoming connections». If not, click on it, and choose that option. Close the window, making sure to apply settings, padlock the settings, and you’re done!
For both, if you selected a different port via the start command or Commands.dat, change the first number to the port you selected, and the second port two ports ahead (ex. 27040-27042).
Port Forwarding:
NOTE: Port Forwarding has to be done carefully. Nobody will be able to connect to your server if you do this incorrectly.
In order for anyone to access the server you’ve set up, you need to go into your router’s settings and open the server’s set ports.
You will need the following information which can be retrieved from your router (usually a sticker on the side):
To find your local IP address, follow these steps (Windows):
Follow the steps below (these might not be the exact field names, you will have to look for something similar in context):
Below is an example of a completed port forwarding rule.
Field Name | Field Value |
---|---|
Rule | Unturned |
Protocol | UDP |
External Starting Port | 27015 |
External Ending Port | 27017 |
Internal Starting Port | 27015 |
Internal Ending Port | 27017 |
Internal IP Address Box | 192.168.1.150 |
If you are unable to locate these things, try checking https://portforward.com/router.htm to see specific instructions for your router.
Alternatively, you can put your hosting system into the DMZ. This opens all ports and is an option if for some reason normal port-forwarding fails. Putting your system into the DMZ opens up numerous security vulnerabilities and should only be used as a last resort!
Как обновить ACME v1 до v2?
у меня такая проблема вышла
The server experienced an internal error :: ACMEv1 is deprecated and you can no longer get certificates from this endpoint. Please use the ACMEv2 endpoint, you may need to update your ACME client software to do so. Visit https://community.letsencrypt.org/t/end-of-life-pl. for more information.
по офсайту не нашел понятную инструкцию по обновлению клиента.
Кто сталкивался, как вы решили такую проблему?
stretch (oldstable) (web): automatically configure HTTPS using Let’s Encrypt
0.28.0-1
deb9u3 [security]: all
stretch-backports (web): automatically configure HTTPS using Let’s Encrypt
0.28.0-1
bpo9+1: all
buster (stable) (web): automatically configure HTTPS using Let’s Encrypt
0.31.0-1+deb10u1: all
bullseye (testing) (web): automatically configure HTTPS using Let’s Encrypt
1.12.0-2: all
Hosting dedicated servers using client files has been deprecated since june 2019 как исправить
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
Since the June 2019 updates to Server 2016 with Exchange 2016, CU12, happens on both Exchange servers:When clicking on Event Viewer / Custom Views (only with Custom Views)
Pop-up window: “MMC has detected an error in a snap-in and will unload it. Report this error to Microsoft, and then shut down MMC / Unload the snap-in and continue running”
When selecting running; “FX:
When clicking on OK, this window appears;
When selecting running; “FX:
When clicking on OK, this window appears:
Event Viewer (Local)
This snap-in performed a non-valid operation and has been unloaded. To continue working with this snap-in, restart MMC or try loading the snap-in again.
Exception Type: System.IO.IOException
Exception Message: The process cannot access the file ‘C:\ProgramData\Microsoft\Event Viewer\msexchangerepl_events.xml’ because it is being used by another process.
at System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath)
at Sytem.IO.FileStream.Init(String path, FileMode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
Informational Event 106, Eventlog-ForwardingPlugin Subscription policy has changed. Forwarder is adjusting its subscriptions according to the subscription manager(s) in the updated policy.
Server Hosting¶
New Unturned server hosting rules are in effect
All multiplayer servers are hosted using the Unturned Dedicated Server tool, which is installed and updated through Valve’s SteamCMD tool.
Windows Server Hosting Tutorial Video
A video created by nelson that covers the basics of a windows server setup using the dedicated server app. The video does not cover Linux-based hosting or Port Forwarding which is required for internet-accessible servers.
Multiplatform:
Windows:
Linux:
Installing SteamCMD¶
How to Install SteamCMD on Windows¶
How to Install SteamCMD on Linux¶
Installation on Linux varies by distribution and your admin preferences, so refer to Valve’s Linux Documentation. Once downloaded, run the steamcmd.sh script.
How to Install Server using SteamCMD¶
Log in to Steam anonymously:
Download the server:
this command can also be used to update the server.
The server files are now in the SteamCMD > steamapps > common > U3DS directory.
Launching the server¶
How to Launch Server on Windows¶
Insert the following text into the file:
In this example, MyServer is used as the ServerID for save data and configuration purposes.
Cleanly shutdown the server once it finishes loading:
Running it will have created a «MyServer» directory in U3DS > Servers. This is where all save data and configuration files are kept. Changing the MyServer ServerID in the batch script can be done to run multiple servers at once, or to keep save data separately.
The included ExampleServer.bat serves as an example script
How to Launch Server on Linux¶
For an internet server run the following command:
In this example, MyServer is used as the ServerID for save data and configuration purposes.
Cleanly shutdown the server once it finishes loading:
Running it will have created a «MyServer» directory in U3DS > Servers. This is where all save data and configuration files are kept. Changing the MyServer ServerID in the launch arguments can be done to run multiple servers at once, or to keep save data separately.
For an example script, open the built-in ExampleServer.sh file.
The included ExampleServer.sh serves as an example script
How to Configure a Server¶
Each individual ServerID has its own save data and configuration.
Launch Commands¶
Launch commands are set up in the Server > Commands.dat file. Each line should have only one command.
Common useful commands are:
Map: Specify the map to load by name, otherwise PEI is used.
Port: Running multiple internet servers simultaneously requires specifying different ports. Unturned will use the set port for game traffic, port + 1 for server list queries, and port + 2 for the Steam backend. Recommended port values are 27015 for the first server, 27018 for the second server, so on and so forth.
Name: Name of the server on the server list; set as «Unturned» by default.
Game rules, listing display, and many other options are available in the Config.json file. Game options mirror the in-game Play > Singleplayer > Config menu. This file deserves further documentation but is not officially documented yet.
Workshop add-ons¶
Steam Workshop add-ons (e.g., maps, items, vehicles) are set up in the WorkshopDownloadConfig.json file. To include a Workshop file on your server:
Copy the file ID from the end of the URL.
Insert the file ID into the File_IDs list:
Multiple file IDs should be separated by commas:
During startup the files will be updated, and any dependencies detected. Players will have the files downloaded while connecting to the server.
How to Host Curated Maps¶
Curated maps are available as workshop items, so are configured in the WorkshopDownloadConfig.json file. During startup, the Map command searches installed workshop items for a matching name.
Curated Map file IDs
Map | File ID |
---|---|
Athens Arena | 1454125991 |
Belgium | 1727125581 |
Bunker Arena | 1257784170 |
California | 1905768396 |
Canyon Arena | 185020976 |
Carpat | 1497352180 |
Cyprus Arena | 1647991167 |
Cyprus Survival | 1647986053 |
Dango | 1850228333 |
France | 1975500516 |
Greece | 1702240229 |
Hawaii | 1753134636 |
Rio de Janeiro | 1821848824 |
Elver | 2136497468 |
Kuwait | 2483365750 |
How to Host Over the Internet¶
Hosting a publicly-accessible internet server requires an extra step compared to a LAN server. When on a home network Port Forwarding is required to direct traffic to the host computer.
One way to think of it is that when there are multiple devices (e.g. computers and phones) connected to the LAN, the outside internet does not know which device is the Unturned server. In this case, port forwarding specifies which LAN device is the host.
For port ranges and other details: Port Forwarding
How to host an Unturned 3 Dedicated Server on Windows
Download SteamCMD here: https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip SteamCMD commands: login anonymous app_update 1110390 quit …
40 thoughts on “ How to host an Unturned 3 Dedicated Server on Windows ”
It don’t work :/ (Followed along step by step and dubble checked)
it runs but doesn’t run
Bro I canРІР‚в„ўt do it for some reason when I try to extract the zip contents itРІР‚в„ўs not there and when I try to open it it says I need winzip please help IРІР‚в„ўm really dumb and donРІР‚в„ўt know what to do
is this a server which will show up in the ingame server list
My server isn’t working I don’t now why, i followed all the steps already.
still doesn’t work, it should not take all this just to have a custom private lobby for my friends honestly
PLEASE HELP
I create a server, I do not know hoy to do port forward, so I use Hamachi, I am the owner so I put the ipv4 (the one tha gives you hamachi) on the IP slot, about port, I use 27017 But I have tried with 27015 too (I have put «port (and the port)» on the commands), I do not use password, I think I just did everything, but my friends still have isues with finding or enter to the server, they put the information and it just stay on the part that gives you 10 tryes to conect
Guys i did all of the above, and if you want to play with your friends u’ll have to change to ‘LanServer’ not ‘Internet’ one. Also get hamachi, create a network and tell your friends to connect. Then open Unturned, go to connect and put host’s ipv4 adress and ‘27015’ as port. this port worked for me idk. Then ur all set. Hope this works for u
why does my server come on lan when i changed to internet?
and also how do i play with friends
Hi, how to update the server of there comes a update?
FINALLY thank you so much i did another method that took an hour and didnt work thank you so much
Hello and Thank you for the tutorial, however, i do everything that it is shown and the Server does not appear in the Server tab of steam, can Someone please help? And Thank you if you do.
Everything works but.. There is still one problem… When i try to put it on InternetServer it still is on Lan even tho i changed it.. Idk whats going on please help
«Hosting dedicated servers using client files has been deprecated since June 2019.»