I remember seeing an AS3 library for using free proxy servers…..
A Proxy-savvy Socket in ActionScript 3 ”The RFC2817Socket class works exactly like the flash.net.Socket class, but if you give it proxy settings by calling setProxyInfo before calling connect, it will first handle the negotiation with the proxy server before dispatching the Event.CONNECT event. (If you don't set proxy settings, it will work just like the standard socket class.) All you have to know is your proxy server's hostname and port number, and RFC2817Socket takes care of the rest.” Check it out here: HYPERLINK "http://weblogs.macromedia.com/cantrell/archives/actionscript/index.cfm"http ://weblogs.macromedia.com/cantrell/archives/actionscript/index.cfm That might help? Cheers Campbell A. _____ From: elad_nyc [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 2:55 PM To: [email protected] Subject: [flexcomponents] Re: Problem Creating binary socket based connection to remote server Hi Ted, Thanks for the reply. I heard that it is possible to create the connection using "flash.system.-Security" class. Is there is any way to connect to lower ports such as FTP or POP without posting an XML file, or python script on the remote server? Best, Elad. --- In HYPERLINK "mailto:flexcomponents%40yahoogroups.com"[EMAIL PROTECTED], "Ted Patrick" <[EMAIL PROTECTED]> wrote: > > Elad, > > > > Socket based connections to low ports require a special policy file be > placed on port 80 of the target server. > > > > Flash Player delegates server security to the server by loading an XML > file on this default url : HYPERLINK "http://server/crossdomain.xml"http://server/-crossdomain.-xml > > In the case of flash.net.Socket and flash.net.XMLSocket-, you need to > allow low port connections within this file like so: > > > > <?xml version="1.0"-?> > > <!DOCTYPE cross-domain--policy SYSTEM > "HYPERLINK "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"http://www.macro med-ia.com/xml/-dtds/cross--domain-policy.-dtd"> > > <cross-domain--policy> > > <allow-access--from domain="*" to-ports="507" /> > > <allow-access--from domain="*.mysite.-com" to-ports="507,-516" /> > > <allow-access--from domain="*.myothersi-te.com" to-ports="516- 523" /> > > > <allow-access--from domain="www.-myothersite.-com" > to-ports="507,-516-523" /> > > <allow-access--from domain="www.-mysite.com" to-ports="*" /> > > </cross-domain--policy> > > > > Assuming you want to connect to port 21 (FTP) you would do the > following: > > > > <?xml version="1.0"-?> > > <!DOCTYPE cross-domain--policy SYSTEM > "HYPERLINK "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"http://www.macro med-ia.com/xml/-dtds/cross--domain-policy.-dtd"> > > <cross-domain--policy> > > <allow-access--from domain="*" to-ports="21" /> > > </cross-domain--policy> > > > > Also make sure to limit the domain to the domain that your SWF file is > hosted from. * allows connections from flash players from any domain. > > > > Here is my post on the subject from 2003. > > HYPERLINK "http://chattyfig.figleaf.com/pipermail/flashcoders/2003-"http://chattyfig.- figleaf.com/-pipermail/-flashcoders/-2003- September/089698 > .html > > > > Also many times there is no HTTP server on specialized hardware. I wrote > this HTTP server in python to serve the crossdomain.-xml file without the > need to install a heavier process like Apache or IIS. Make sure to > modify the crossdomain.-xml data embedded in the server below if you go > this route. > > > > HYPERLINK "http://www.powersdk.com/download/FCHS.py"http://www.powersdk-.com/download/ -FCHS.py > > > > Hope this helps. > > > > Ted Patrick > > Flex Technical Evangelist > > Adobe Systems > > > > HYPERLINK "http://www.onflex.org"http://www.onflex.-org <HYPERLINK "http://www.onflex.org"http://www.onflex.-org> > > HYPERLINK "http://www.linkedin.com/in/tedpatrick"http://www.linkedin-.com/in/tedpatri- ck > <HYPERLINK "http://www.linkedin.com/in/tedpatrick"http://www.linkedin-.com/in/tedpatri- ck> > > ____________-_________-_________-__ > > From: HYPERLINK "mailto:flexcomponents%40yahoogroups.com"[EMAIL PROTECTED] > [mailto:HYPERLINK "mailto:flexcomponents%40yahoogroups.com"[EMAIL PROTECTED] On Behalf Of elad_nyc > Sent: Monday, January 29, 2007 9:54 PM > To: HYPERLINK "mailto:flexcomponents%40yahoogroups.com"[EMAIL PROTECTED] > Subject: [flexcomponents] Problem Creating binary socket based > connection to remote server > > > > I am trying to create a connection to FTP using the socket class. The > remote server I am trying to connect is on port. > > Is it possible to create a connection to the remote server? > > I am keep getting securities error messages. > > Best, Elad. > -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/658 - Release Date: 1/29/2007 2:49 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/658 - Release Date: 1/29/2007 2:49 PM
