Add port number to activity configuration.