Setting up a Multiplayer Server: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
==Ad-hoc Server==
== Basic Setup ==
 
===Ad-hoc Server===
If you want a temporary multiplayer experience it is enough to open a single player world and then in the escape menu click "Open To Lan". This will then allow players in your local network to join. If you want players to join that are outside your local network, you can then also click "Open To Internet" which will attempt to set up that external players can connect to your server. This is done by a technique called UPnP and that 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 thing called "port forwarding" on your internet router, which can be tricky and frustrating at times, unfortunately.  
If you want a temporary multiplayer experience it is enough to open a single player world and then in the escape menu click "Open To Lan". This will then allow players in your local network to join. If you want players to join that are outside your local network, you can then also click "Open To Internet" which will attempt to set up that external players can connect to your server. This is done by a technique called UPnP and that 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 thing called "port forwarding" on your internet router, which can be tricky and frustrating at times, unfortunately.  


For this server to work, your single player world has to stay open
For this server to work, your single player world has to stay open


==Dedicated Server==
===Dedicated Server===


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.  


=== Dedicated Servers on Windows ===
==== Dedicated Servers on Windows ====


* Enter the games application folder, by default that is in %appdata%/VintageStory
* Enter the games application folder, by default that is in %appdata%/VintageStory
Line 15: Line 17:




=== Dedicated Servers on Linux ===
==== Dedicated Servers on Linux ====


This describes how to set up the server as a service
This describes how to set up the server as a service


==== Requirements CentOS 7 (RHEL, Fedora, ...) ====
===== Requirements CentOS 7 (RHEL, Fedora, ...) =====


'''1. EPEL/screen/wget/curl Install'''
'''1. EPEL/screen/wget/curl Install'''
Line 32: Line 34:
   yum -y install mono mono-devel
   yum -y install mono mono-devel


==== Requirements Ubuntu (Debian, Mint, ...) ====
===== Requirements Ubuntu (Debian, Mint, ...) =====
'''1. screen/wget/curl Install'''
'''1. screen/wget/curl Install'''


Line 85: Line 87:


'''9. Connect to you IP/Domain and have fun'''
'''9. Connect to you IP/Domain and have fun'''
== Basic Configuration ==
Once your server is up and running you might want do look over some of the following configuration options. You can configure the server while its running through commands or by editing the serverconfig.json, for which the server needs to be off.
* <code>/serverconfig name Peaceful PvE Server</code> - Set up the server name, visible in the public server listing
* <code>/serverconfig description This is a medieval survival server, PvE only, everyone welcome! <3</code> - Set up the servers description, visible in the public server listing (only available starting from v1.10.1, in v1.10.0 it can be configured in the serverconfig.json)
* <code>/serverconfig motd Hi {playername}! Please remember to follow the rules!</code> - The message shown to players when they join
* <code>/serverconfig password asdaf</code> - Require a password for players to log in, if desired. Use <code>/serverconfig nopassword</code> to remove again.
Confirmedusers, Bureaucrats, editor, Administrators
1,779

edits