So in order for me to open up a client socket, I need to run an HTTP server?.  If I have a simple Java Socket Server running on the local host and I want the Flash application running in my browser to open a socket connection to that socket server on that published port.  To do this, do I need to run an HTTP server and place the crossdomain.xml file there?.

thanks,
Srini

On 2/3/06, Theodore E Patrick <[EMAIL PROTECTED]> wrote:
The magic answer here is to serve a 'crossdomain.xml' Policy file from
localhost. This will allow the Flash Player to speak with the socket on
localhost and communicate seamlessly.

This is how IFBIN Installation works.

http://localhost:5505/crossdomain.xml

If IFBIN is installed and running, the above URL will serve a valid
crossdomain file. Once the Policy file is digested by the player, you can
then instanciate a Socket, XMLSocket, LoadVars, loadVariables, loadMovie
against the localhost domain and share data, call methods and interact.

With Socket you will need to call loadSecurityPolicy explicitly as this does
not occur automatically like it does with all other data exchange features.

The key is that the localmachine must permit interaction just as if it were
a server itself, which in this case it is. The security here is predicated
that the end user installed a executable application running on localhost.
Interacting with this application via Flash is as simple as serving the
Policy file.

If you have any problems please feel free to email me offlist at either:

Ted.Patrick <AT> CynergySystems <DOT> com
Ted <AT> powersdk <DOT> com
Ted <AT> ifbin <DOT> com

Cheers,

Ted :)



> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of schennamaraja
> Sent: Thursday, February 02, 2006 10:43 PM
> To: [email protected]
> Subject: [flexcoders] Opening a Socket Connection on the same machine
> where the browser is running
>
> Hi Guys,
> I am trying to do the following. wondering if any one has comup with
> this situation and solved it.
>
> I am trying to open a socket coonection to the localhost (same
> machine) where the browser is.  The actual Flex application is
> running on another box. but I need to invoke a local swing GUI
> application on the client machine.  I have the SocketServer running
> in the Swing GUI listening on a port and I am  trying to open a
> socket connection to that port and trying to send some data.  I was
> wondering whether I can open a socket connection on the same
> machine.
>
> If I run the SWF file locally, I am able to connect to the local
> socket server.
>
> wondering is there a way to open a socket connection locally.
>
> thanks
> Srini
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 267.15.0/248 - Release Date: 2/1/2006
>

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.0 /248 - Release Date: 2/1/2006




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to