Prerequisites
- Java 21 or newer installed
- A valid SunGuard license key. See Get your license key.
Step 1: Upload required files
Transfer the following files to your VPS:server.jar(SunGuard server file)license.txt(contains your license key)
scp or an FTP client like FileZilla. Example using scp:
Step 2: Start the SunGuard server
Navigate to the directory containingserver.jar and license.txt, then run:
25595 with your desired port, and make sure the port is open in your firewall.
If Java 21+ is not installed, you can install it with:
Step 3: Verify local access
Check that the server is running correctly:Step 4: Expose to the internet with Nginx (optional)
Install Nginx:http://yourdomain.com.
Step 5: Run on port 80 directly (alternative)
If you’re not using Nginx:Port 80 must be free and not used by other services like Nginx or Apache.
Step 6: Configure the firewall (if needed)
Step 7: Keep SunGuard running after you disconnect
- screen
- tmux
CTRL + A, then D. Resume with:systemd service for auto-start. If you’d rather not manage a server, consider SunGuard Managed Hosting.