$Pref::Server::Port = 28000;
Oops, I meant change it in the config file. It won't do anything if you just put it in console. Replace the current value for this in the file with 28000.