(Very rough) Port allocation