To change the built-in web server port, in the Settings/Preferences dialog, expand the Build, Execution, Deployment node and select Debugger. Use the "Built-in server port" spin box to set the new value.