The port is 20777 (extradata=1) for the codemaster plugin and 4123 for LFS plugin. You can read this value if you maximize the outsim plugin in the taskbar (listening port). It is also noticed in the script files.
In the worst case you delete the game, delete all codemaster settings parts (xml's) in the user area (local appdata) and reinstall the game.
After a reinstall the automatic wizard will change the untouched setting file for you.
Would be very easy if you let X-Sim change the files.
If a answer is correct or did help you for a solution, please use the solve button.