initial stab at automatic port discovery / opening