Validation of the port mappings.