linktree - Multiplayer Online Role Playing Game  >  Development  >  Tutorials
linktree Topic: Add your server to the public list
Pages: [1]   Go Down
Author Topic: Add your server to the public list  (Read 2486 times)
0 Members and 1 Guest are viewing this topic. Bookmarked by 0 members.
Offline Mamoru
Edwin Miltenburg

Posts: 625
Gender: Male
« on: June 24, 2012, 03:06:41 am »

Would you like other people to see your server in their client's server list?
You may add your server to the metaserver. That way it will show up on the server list that the Atrinik Client displays, as well as on the site.

For this tutorial I assume you have already succeeded in completing all of the following steps
  • Checkout Atrinik Repository.
  • Compile Atrinik Server.
  • Collect arches.
  • Add exception for Atrinik Server to your Firewall.
  • Forward port 13327 from your LAN router to your PC, if applicable.

Note that you may choose to use a different port for hosting the Atrinik Server.

Server info
In order to make your server known to the metaserver you will need to provide the following information
  • The name of the server. This could be anything from "Testserver X" to "Fantasia"
  • A description of or a comment about the server. It could mention the server administrator (You!) and what is special about this server.
  • A public hostname that resolves to the IP that is sending the metaserver update request. Without this, people won't be able to connect.
  • Port number, 13327 by default.

Configuration file
In Atrinik 3.0 and versions prior to that, the file server/data/settings was used.
Newer versions make use of server-custom.cfg in the server directory, if such a file exists.
The default server configuration is stored in server.cfg. This file should be left untouched.
The server startup scripts server.bat and automatically check for custom server settings.

Quote from: server-custom.cfg
server_name = Atrinik Testserver
server_desc = Official testserver maintained by Atrinik Team. Developer client needed to connect.
server_host =
port = 13326

Other custom server settings should also be added to this file.

Please keep in mind that every Atrinik Client will see the list of servers known to the metaserver.
Servers may be blacklisted on the metaserver by an administrator.

« Last Edit: June 24, 2012, 06:24:45 pm by Mamoru »  Logged
Offline Ghost

Do not read this or you will go bli
Posts: 162
Gender: Male
« Reply #1 on: June 24, 2012, 07:41:21 pm »

Great tutorial M. I've always wondered on how going about doing this.

Collector of Chilis and Gems/Pearls/Nuggets of all size and type
Offline Mamoru
Edwin Miltenburg

Posts: 625
Gender: Male
« Reply #2 on: June 25, 2012, 12:12:35 am »

Personally I prefer to use a custom version of the server startup script server.bat.
The attached script can be placed anywhere, including outside of the project directory.
You will need to edit it with a text editor before using it. I've made this quite easy.

Instead of using a configuration file, this script sends the options directly to the executable via command line options.
Note that in the event of server.bat being modified, this script becomes deprecated.


Quote from: start_public_server.bat (Sample output)
This script will start the Atrinik Server and add it to the public metaserver.

Script directory: C:\atrinik\
Server directory: main\server

Server configuration
NAME: Atrinik Testserver
DESC: Official testserver maintained by Atrinik Team. Developer client needed to

Start up the server...

* start_public_server.bat (1.95 KB - downloaded 162 times.)
« Last Edit: June 25, 2012, 12:15:17 am by Mamoru »  Logged
Pages: [1]   Go Up
Jump to: