Added port definition to the /register api server handler