I would suggest you contact Qlik support.
You may well be able to correct the port number by directly editting a config file or maybe the repository. But given the high risk of doing that by blind guesswork, having someone from Qlik support to guide you would be a prudent precaution.
Although you could try to RDP to server and see if you can access QMC via http, if you can then you should be able to reset it correctly via the GUI. But that is only guess and I give no guarantees.