Any UDP connect function call should include both an IP and a port number. Changing the port number should be as easy as tweaking the connect call. A "raw" UDP packet won't have a default port - it'll be specified in the code somewhere.
Which interface(s) are used happens at a lower level, though - the routing tables will determine which interface, if any, can best route your UDP packets to the desired destination. The port should make no difference to that part of the equation. To cover two interfaces, you'd probably need to send two multicast packets to the two subnets. (If I'm understanding your question correctly).
If you check out the OSI networking layers -
http://en.wikipedia.org/wiki/OSI_model for instance - the interfaces are determined at level 3 (IPv4/6) and the UDP port at level 4. A good read for a network geek, that page!!