patch: Allow client to determine port names.