Set port to -1 if port is 80