IPOs are sold by salespeople with pitch decks to brokerage firms, who then sell to their clients. It's not done through an exchange; it's done on handshakes and phone calls, on human time scales, in the weeks/months leading up to the first day of trading.
People sometimes refer to the first day of trading as an "IPO", but that's not quite right.
People sometimes refer to the first day of trading as an "IPO", but that's not quite right.