How to host your own server.

Need help hosting your 8x8 board games server? How to do a port forward? Cannot connect to your MySQL database? Post all those types of questions here.
Post Reply
User avatar
Site Admin
Posts: 39
Joined: Sun Feb 21, 2021 8:06 pm

How to host your own server.

Post by admin »

Paid members can host their own server by executing the server file ot you can build your own server executable file by downloading the server software at GitHub. Just download the server software then create a file called config.bat. Place that file anywhere on your hard drive. Point to that file at main.hx.

Inside of that config.bat file, copy then paste the following.
SET ip= ""
SET port=
SET _dbHost= ""
SET _dbPort=
SET _dbUser= ""
SET _dbPass= ""
SET _dbName= ""
SET _username= ""
SET _domain= ""
SET _domain_path= ""

Change ip from the above to "" to allow everyone to enter the server, or set to "" to allow the client to connect only locally to the server.

Change port to a value such as 9200 that the server will use. If you want to allow multiplayer online play then you will need to do a port forward.

Change _dbHost to "localhost" to connect locally to the server.

Change _dbPort to your MySQL port.

Change _dbUser to the user of the MySQL database. Eg, "root".

Change _dbPass to the password that you use to connect to the MySQL database.

Change _dbName to the MySQL database name.

Change _username to the member name at K Board Games that has the paid account or set up your own website with the database found at the Github server repository.

Change _domain to your website name without the "http: //www". Example, "" for online play.

Change _domain_path to the full path to root folder that your website files are located.

Download the client. At client root, where the exe file is located, create a file called config.txt. At the top line inside of that file, type in your server ip followed by a colon then the port, all without a space.

for example, localhost:9200

Any text after the first line inside of the config.txt will be ignored. After the client is loaded, you will see the main menu. At the client's main menu, your server address will be displayed as an option to connect to, only if there exists the config.txt at client root and only while the member setting up the server is still a paid member of You can bypass the above if you build your own server software.

If either the server config.bat file at server/sub folder is missing or the config.txt file at client folder is missing, the client connection to your server will not work. The client trying to connect to your server will first check the database to see if that domain address or ip address is still in paid status.

Registered members can login to the client.
When you register at forum, you will be registered at the client software. When using the client online, just login with your forum username and password.

When using the client software online, you cannot create an account for members. Instead, you will need a website that can simultaneously register a user for both the forum and client.

You will need to host both the server and website on your computer and they both need to share the same database. later I will post information about how to setup a forum to be used with the client software.
Post Reply