I can see it pays to read the documentation.

--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> I did a little more digging, and despite the way that sentence reads in
> the documentation for securityError, this port limitation is not
> actually independent of security sandbox policies and can be avoided
> with the correct policy settings.
>  
> Take a look at the documentation for the connect() method:
>  
> http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#connect()
>  
> It appears that you can specify a policy file for ports less than 1024,
> but it can only be done via the method I mentioned via responding to the
> <policy-file-request/> token and it appears that despite that you're not
> explicitly using an XML socket, for the purposes of locating a policy
> file you do use the xmlsocket://myserver as the protocol in the URL to
> loadPolicyFile.
>  
> Pete
>  
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Paul DeCoursey
> Sent: Wednesday, April 18, 2007 12:16 PM
> To: [email protected]
> Subject: [flexcoders] Re: Socket to Port 80
> 
> 
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Peter Farland" <pfarland@> wrote:
> >
> > 
> > > I'll give this a try, but I'm not actually using
> > > XMLSocketbut a straight Socket ...
> > 
> > [Pete] I did see that, but was looking around at samples for loading
> > custom policy files over a socket and must have cut and pasted one
> that
> > included the xmlsocket: in the protocol. But protocols aside, I think
> > the next paragraph explains your issue and it is not related to policy
> > files at all...
> > 
> > 
> > 
> > > I believe I remember reading something about that in
> > > the Flex documentation that it has to do with it being
> > > a Socket connection to a port under 1024.
> > 
> > [Pete] Ah, yes, you're right. It is listed as an explicit security
> error
> > in the documentation if one attempts to connect to a port less than
> > 1024. From my reading of this documentation it is mentioned as a
> > restriction independent of any security sandbox policies.
> > 
> > 
> 
> Although this is no help, I just thought I would chime in with a
> rant... Why can't we open a socket on a port lower than 1024? I would
> understand if it were to open a ServerSocket but these are sockets. 
> Although we can use proxies or install our services on higher ports,
> which will probably be blocked by firewalls in the real world I find
> this limiting. I'm sure this is all because of plugin/browser
> limitations, and it probably makes sense to some "nerd" somewhere.
>


Reply via email to