To change the built-in web server port, in the Settings/Preferences dialog &shortcut:ShowSettings; , go to Build, Execution, Deployment | Debugger) and set the new value in the Built-in server port field.