test function to reserve UDP port