User Tools

Site Tools


server:hosting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
server:hosting [2016/04/18 07:05]
saru [Server Settings]
server:hosting [2018/03/05 06:26]
karl reverted my "vandalism" from last time, i had been rock solid confessed, that the ports would be in the 132 range, and not 133, added mentioning of port 13325 for the watchdog
Line 17: Line 17:
     * Connections issues can occur within the Crossfire client if the domain name is not full qualified.     * Connections issues can occur within the Crossfire client if the domain name is not full qualified.
   - Network security to allow remote connections and communication to the metaserver (if a public server).  ​   - Network security to allow remote connections and communication to the metaserver (if a public server).  ​
-    * The server runs on port 13327+    * The server runs (by default) ​on port **13327**
       * if you have a firewall, it will need to allow that port for incoming connections, ​       * if you have a firewall, it will need to allow that port for incoming connections, ​
       * if you are running NAT, you will need to make sure that the connection to port 13327 gets routed to the correct server.  ​       * if you are running NAT, you will need to make sure that the connection to port 13327 gets routed to the correct server.  ​
-    * The metaserver runs on port 13326 and 80 (HTTP)+    * The metaserver runs (by default) ​on port **13326** and 80 (HTTP)
       * if you have a firewall, it will need to allow 13326 and 80 for incoming connections, ​       * if you have a firewall, it will need to allow 13326 and 80 for incoming connections, ​
       * if you are running NAT, you will need to make sure that the connection to port 13326 gets routed to the correct server.       * if you are running NAT, you will need to make sure that the connection to port 13326 gets routed to the correct server.
       * For metaserver2 updates, it is an outgoing connection to standard HTTP port (80), so very few firewalls should block it.       * For metaserver2 updates, it is an outgoing connection to standard HTTP port (80), so very few firewalls should block it.
  
 +==== Watchdog ====
 +The watchdog feature can be enabled manually in the //​server/​include/​config.h//​ at [[:​server:​server_compiling]] as //#define WATCHDOG 1// . \\
 +The watchdog port number is hardcoded inside //void watchdog(void)//​ located in the //​server/​socket.loop.c//​ source file as //13325// . \\
 +:!: The watchdog feature may not work as it should currently until incl. server v1.70.0 to create ​
 +  * a port at startup already ( but will create it after %503 ticks )
 +  * an //udp// port of the number 13325 ( but some random udp-port above 32768 )
 +:!: Further it would create an additional socket, and that may lead to problems that the code does not work to add a new client. You may better not enable that feature!
  
 ===== Installing a Crossfire Server from a Binary ===== ===== Installing a Crossfire Server from a Binary =====
Line 54: Line 61:
     * The default settings file will work just fine, and is most supported     * The default settings file will work just fine, and is most supported
     * The file controls many aspects of play - permadeath or not, number of starting stat points, etc.     * The file controls many aspects of play - permadeath or not, number of starting stat points, etc.
 +
 +=== Players accounts ===
 +Player account information is stored in the /var directory (on linux this is usually /​usr/​games/​crossfire/​var/​crossfire/​).
 +   * The account file in the var directory includes account name and password information.
 +   * The accounts file is linked to each player file in the file with the same name stored in /account
 +   * Each player file is stored within the directory /players
 +   * You will need to back up each of these in order to be able to keep an archive for your players. It is generally a good idea to set up an automatic archiving script such that if something gets broken any account or player may be recovered.
  
 === DM account === === DM account ===
Line 140: Line 154:
   - All crossfire files are text, so generally easy to back up and restore. Since files are text, one can even attempt to repair damaged/​corrupted files.   - All crossfire files are text, so generally easy to back up and restore. Since files are text, one can even attempt to repair damaged/​corrupted files.
   - Consider using Munin (http://​munin-monitoring.org/​) for monitoring and tacking server resources, more of a server host or administration benefit   - Consider using Munin (http://​munin-monitoring.org/​) for monitoring and tacking server resources, more of a server host or administration benefit
 +
 ==== Social Management ==== ==== Social Management ====
 === General Tips === === General Tips ===
server/hosting.txt ยท Last modified: 2019/06/16 02:33 by saru