Even if you can’t sell the stock directly you can effectively sell options for someone else to buy that stock from you at IPO.
I haven’t looked into this myself, but I recall reading about someone doing this when their options where about to expire in a relatively hot but still far from IPO startup.