How do I Change the Internal Port 32400?

if your server is already signed in

if you are setting up a new server, you must claim it from the local network (you cannot claim or sign into a new server from a remote network).

this may mean you need to do an ssh tunnel to your server

https://forums.plex.tv/search?q=claim%20server