Fixed connection factory not considering explict ports