It depends on the application. Some applications have the port that they bind to hard-coded, in which case, you ask the vendor to externalize the port bind and put it in a configuration file. Luckily, many applications have the port definition in a configuration file. Check the documentation from your application, or ask the vendor for guidance.
I want to run an application on a particular port number. What changes i have to make to my system to run that application.