I am using grails framework to develop a web application. I need to generate the runtime server URL as follows: `http:hostname:port/application/`. In grails configuration we have an option to provide the serverURL using `grails.serverURL`.

My question is: **Can we get the port number of server which the application is running at runtime? Is this possible?**