changing port after change in the API