Unless you have a good connection with someone at the IPO company or the I Banks doing the deal, you will not get into an IPO.
They are usually reserved for employees or families of the IPO company or top clients or partners of the investment bank. Even if you do get in, chances are, you won't get too many shares.
I banks have something called a capital markets group that helps with the allocations of IPO shares. They usually call their best clients like Fidelity or Vanguard to gauge their interest in the IPO. The client would ask them for an allocation and the capital markets group divides up the IPO according to how much business or potential business they can get from the client. Oftentimes, the client would need to promise to buy a certain amount of shares in the aftermarket and promise not to flip (sell immediately) the shares they get.