Skip to main content

SunLicense Server Setup VPS Guide (Without Pterodactyl)

Prerequisites

1. Upload required files

Transfer the following files to your VPS:
  • server.jar (SunLicense server file)
  • license.txt (contains your license key)
You can use scp or an FTP client like FileZilla. Example using scp:

2. Start the SunLicense server

Navigate to the directory containing server.jar and license.txt, then run:
  • Replace 25595 with the desired port number.
  • Make sure the port is open in your firewall settings.
If Java 21+ is not installed, you can install it with:

3. Verify local access

Once the server starts, check it from the VPS itself:

4. Expose to the internet (optional)

To access SunLicense from an external network, configure a reverse proxy with Nginx. Install Nginx
Configure the Nginx proxy
Add the following content:
Save and exit (CTRL + X, then Y, then Enter). Enable the configuration and restart Nginx
SunLicense is now available at http://yourdomain.com.

5. Run on port 80 (alternative)

If you don’t want to use Nginx, run SunLicense directly on port 80:
This works only if no other services (like Nginx or Apache) are using port 80.

6. Configure the firewall (if required)

7. Keep SunLicense running

To keep SunLicense running after you close the terminal, use screen or tmux:
Press CTRL + A, then D to detach. To resume:

Conclusion

SunLicense is now set up on your VPS. You can manage it manually or configure a systemd service for automatic startup. If you’d prefer a managed setup, consider SunLicense Managed Hosting.