Hello,
I saw several conversation regarding the fact that VLC do not allow to select its source port when streaming video with UDP. I have to ask the question again and to try to be more specific with what stand behind it and to see how can I overcome the situation I'm facing:
When I stream video with UDP to a specific public IP address and port pair in order to penetrate the NAT and bring the video into the target private IP behind this NAT I need to punch a hole in it before the VLC stream arrives to the NAT. In order to do this I have to send a dummy UDP packet FROM the target private IP TO the source of the streaming.
Now, there are different types of NAT (see http://www.crfreenet.org/~martin/referaty/stun/naty.pdf) and there is specifically one type - "Port Restricted Cone NAT", that accept only incoming UDP packet that designated to a specific internal destination port and arrived from a specific source port. In order to punch a hole in that kind of a NAT one have to know both source and destination ports of the incoming UDP stream (in our case VLC stream) and of course its source IP - in that point I have a problem with the fact that VLC source port is unknown before the streaming begin.
I hope I made myself clear and I hope I can get some help in resolving that issue.
Thanks,
Eyal