Replace more predefined port numbers with generated ones