More robust reverse tunnel port selection.