Skip to content
Nanahira edited this page Apr 12, 2024 · 8 revisions

How to run

Start WindBot

If you enabled AI mode, you have to enable WindBot before running the server.

cd ygopro-server/windbot
pm2 start WindBot.exe --interpreter=mono --name=windbot -- ServerMode=true ServerPort=2399

Start Redis

Redis is deprecated. Use MySQL instead.

Start server

For testing:

node ygopro-server.js

For production:

pm2 start ygopro-server.js

If you are running with CentOS but not able to connect to the server, it may be that the port 7911 is blocked. There are 2 solutions.

Solution 1 (Not recommended)

Run the following command to turn firewalld off.

sudo systemctl stop firewalld
sudo systemctl disable firewalld

Solution 2 (Recommended)

Run the following command to unblock the ports used by SRVPro.

sudo firewall-cmd --zone=public --permanent --add-port=7911/tcp
sudo firewall-cmd --zone=public --permanent --add-port=7922/tcp
sudo firewall-cmd --zone=public --permanent --add-port=22/tcp
sudo firewall-cmd --reload