Add getPort and getBasePort methods