return correct port to the user