Fixes reconnection problems in case of non-default PZH ports

In addition, removes unneeded "iot" port from the configuration.
This is already moved to the API implemenation.

Jira-issue: WP-1322