Modify ctrl_proc example to automatically select a port.