Group Ranking: Token invalidates on different server

What I’m trying to do (format below lol): I’m trying to create a Discord bot to change player’s ranks in a Roblox group. This works but not if I put my bot on a host (so a different IP). I have Account Session Protection turned off for the relevant Roblox account, so it should work.

  1. What do you want to achieve? Keep it simple and clear!
    I want to change my rank on a group through a Discord bot.

  2. What is the issue? Include screenshots / videos if possible!
    The code works, but as soon as I put it on a different host, it no longer works because the ROBLOSECURITY token is invalidated.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve verified that the token is correct before putting my bot on the host. I’ve verified that the code itself works. I’ve even tried to log in to my account using the old token but it wouldn’t work, meaning the token was invalidated. I’ve also made sure that Account Session Protection was turned off for the account that I’ve put the token of into my bot.

On the other host, are you able to log in normally on the website and use the token from that session? You might need to remote desktop in or use the other host as a VPN when logging in.

Hi, it’s a Pterodactyl panel server. I’d need to log in to the account programmatically as it isn’t a VPS or a “machine with a screen”. Any help with doing that, perhaps?

I’m not familiar with Pterodactyl. In what ways are you able to provide it with the source/binaries that your bot uses?

Going back to your original method, are you able to change hosts to match the same region you’re in?