Hi, Can some one help me or guide me on how to access two different ports on a same program

Assume that a server sends a mpeg2ts encapsulated using udp to a multicast group address say 239.0.0.1. It sends two streams to the same multicast address but to different ports say 1300 and 1400.

In my program i have to access these to ports at a time. Is this possible???

Please Help me with this

Thank u