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
admin
Site Admin
Posts: 35
Joined: Sun Feb 21, 2021 8:06 pm

How to host your own server.

Post by admin »

Instructions.
Paid members can host their own server. Just download the server software, go to the sub folder called sub, and then create a file called config.bat

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 "0.0.0.0" to allow everyone to enter the server, or set to "127.0.0.1" 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. That member must be logged in to K Board Games forum with the remember me option enabled before the server can go online.

Change _domain to your website name without the "http: //www". Example, "example.com" 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 kboardgames.com.

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 kboardgames.com 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 kboardgames.com 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