Setting up a Multiplayer Server: Difference between revisions

From Vintage Story Wiki
Marked this version for translation
No edit summary
(Marked this version for translation)
Line 5: Line 5:
=== Ad-hoc Server === <!--T:2-->
=== Ad-hoc Server === <!--T:2-->


<!--T:129-->
If you want a temporary multiplayer experience it is enough to open a single player world, then click on "Open to Lan" in the escape menu. This will allow players in your local network to join.
If you want a temporary multiplayer experience it is enough to open a single player world, then click on "Open to Lan" in the escape menu. This will allow players in your local network to join.
If you want to allow players outside of your local network to join, you can then also click "Open to Internet" which will attempt to set up an external connection to join your server from the internet. This is done by a technique called UPnP and has to be enabled on your internet router, which it often is by default. In short, we estimate there's about a 60% success chance that 'Open to Internet' works instantly without issues. If it doesn't you would need to set up a so called "port forwarding" on your internet router, which can be tricky and frustrating at times, unfortunately. You would need to forward TCP Port 42420 to your computer in that case. (Google 'Port forwarding' with the name or model of your internet router to find help.)
If you want to allow players outside of your local network to join, you can then also click "Open to Internet" which will attempt to set up an external connection to join your server from the internet. This is done by a technique called UPnP and has to be enabled on your internet router, which it often is by default. In short, we estimate there's about a 60% success chance that 'Open to Internet' works instantly without issues. If it doesn't you would need to set up a so called "port forwarding" on your internet router, which can be tricky and frustrating at times, unfortunately. You would need to forward TCP Port 42420 to your computer in that case. (Google 'Port forwarding' with the name or model of your internet router to find help.)
Line 14: Line 15:
=== Dedicated Server === <!--T:4-->
=== Dedicated Server === <!--T:4-->


<!--T:130-->
Alternatively the game ships with a dedicated server program that you can start and leave on permanently without needing to log in yourself.
Alternatively the game ships with a dedicated server program that you can start and leave on permanently without needing to log in yourself.
There are several ways to get a dedicated server up and running.
There are several ways to get a dedicated server up and running.
Line 42: Line 44:
==== Dedicated Servers on Windows ==== <!--T:6-->
==== Dedicated Servers on Windows ==== <!--T:6-->


<!--T:131-->
* Open the game's application folder, it is <code>%appdata%/VintageStory</code> by default.
* Open the game's application folder, it is <code>%appdata%/VintageStory</code> by default.
* Run <code>VintagestoryServer.exe</code>.
* Run <code>VintagestoryServer.exe</code>.
Line 49: Line 52:
==== Dedicated Servers on Linux ==== <!--T:7-->
==== Dedicated Servers on Linux ==== <!--T:7-->


<!--T:132-->
This describes how to set up the server as a service on Linux systems.<br>
This describes how to set up the server as a service on Linux systems.<br>
<span style="color:#E16100">Note: ''The following only works for x64 processors, if using ARM please refer to the following section.''</span><br>
<span style="color:#E16100">Note: ''The following only works for x64 processors, if using ARM please refer to the following section.''</span><br>
Line 165: Line 169:
==== Simple Server start command ==== <!--T:111-->
==== Simple Server start command ==== <!--T:111-->


<!--T:133-->
If you want to use a custom script or just manually start your server you can run  
If you want to use a custom script or just manually start your server you can run  
  dotnet VintagestoryServer.dll --dataPath /path/to/data
  dotnet VintagestoryServer.dll --dataPath /path/to/data
Line 219: Line 224:
===Debian with systemd service and rsyslog=== <!--T:60-->
===Debian with systemd service and rsyslog=== <!--T:60-->


<!--T:134-->
If you prefer using systemd instead of screen to run your VS Server, you can follow these Instructions.<br>
If you prefer using systemd instead of screen to run your VS Server, you can follow these Instructions.<br>
We also will setup rsyslog to split all logs into separate files.<br>
We also will setup rsyslog to split all logs into separate files.<br>
Line 455: Line 461:
====Hetzner==== <!--T:106-->
====Hetzner==== <!--T:106-->


<!--T:135-->
You will need to create a record from their DNS Console :
You will need to create a record from their DNS Console :
* Type : <code>SRV</code>
* Type : <code>SRV</code>
Confirmedusers, editor
37,784

edits