puzzled at plainTransport.connect

plainTransport.connect(ip, port),how the mediasoup server get and connect ip if the ip is behind NAT such as

Is that plain transport for sending RTP from client to mediasoup? from mediasoup to the client? or both?

from mediasoup to client.

Then you need to open a port in your NAT router and redirect. No magic is possible. This is how legacy RTP works.

How can media server broadcast 1-many for plaintransport? client ->server-> many clients?
Thank you.

Please stop mentioning me. This is a forum with many users, not just me.