how can i get a dynamic port in L2CAP?

I know how to get it in RFCOMM.