The ports you use with RCON must be open on both your web hosting and game server VPS.
How to enable RCON on your Minecraft server
1
Configure your server.properties file.
server.properties
2
Save the file and restart your server.
3
Enter these details to your website's Add/Edit Server section. Press the 'Test Connection' button to check if it works.