Taxation on selling unlisted shares after IPO

Can someone please explain STCG and LTCG Taxation on selling unlisted shares after listing (IPO) for Indian stocks as well as for US stocks?

Will the taxation be as per the unlisted shares taxation rules or listed shares?

@Quicko