Separate adding port to connect-string if given with hostname, to be more well-block-coded.