Each IPO can have different criteria for eligibility. The company issuing the IPO and the related banks will decide the eligibility. Often this is based on the country of residence.