flashactionscript-3netconnectionnat-traversalhole-punching

Is it possible to force a source port on a NetConnection?


I'm new to ActionScript, but I'm trying to decipher a pre-existing project and make some modifications as I go.

I have a section of code that starts with creating a new NetConnection and then streaming a media file from an external source. I see in the documentation that you can provide a destination port (via the URL), but is it possible to force Flash to use a specific source port? I couldn't find a clear way to do this in the documentation, but I was curious if anyone else has an alternate method or idea.

The end goal of this is that I would like to be able to use the source port in a predictable way to do NAT Hole Punching. Thanks for any suggestions or answers!


Solution

  • Flash does not provide this level of control over the network calls. Sorry.