Support for port changing in the API