How a software is assigned a designated port by the community?

This is general question on unix software development. I actually have seen some of the earlier questions (mentioned below) which gave rise to my question:

Suppose if you are building a service which you later want to package and publish for the linux distro and it involves networking, if you are making everything my scratch ( like not using ssh or http etc ), then you will need some default ports for communication. So how does the community ( or whoever is responsible ) decides which port to be used and make it reserved?
How the whole stuff for deciding a new reserve port works out?

Go to Source
Author: Aaryan BHAGAT

Two apache servers on same machine with same port

I have a self hosted apache website with php and mysql on my Raspberry Pi. Now I need to make another one for my new domain but I have no other computer to run the server on. Is there a way for me to run the server on the same machine, with the same port? If not, how may I alter the port so there is no need for me to type I need it to be

Go to Source
Author: James B. Reese