The IP and port used are the same when you access workflows on the community hub via a web browser.
Maybe this thread and specifically this message (change to the knime.ini file) helps to establish a secure connection, without requiring changes to the network: