Prepares port for server listening