We can change the port number for the server running our Grails application. We right-click on the project in the Project window and select Properties. We get a dialog window and select the General Settings node. We set the server port in the field Server Port. The default value is 8080, but we can change it to another value if we want.
We click on the OK button to close the dialog window. Next time we run our Grails application the server is started with the new server port.