Allow Apex server instances to have different port numbers