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
If you enabled Cloud Replay, you have to enable Redis to save the cloud replays.
Via System Service
sudo systemctl start redis-server # Ubuntu or Debian
sudo systemctl enable redis-server
sudo systemctl start redis # CentOS
sudo systemctl enable redis
Via PM2
pm2 start redis-server
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 firewalld --zone=public --permanent --add-port=7911/tcp
sudo firewalld --zone=public --permanent --add-port=7922/tcp
sudo firewalld --zone=public --permanent --add-port=22/tcp
sudo firewalld --reload