Re: [flexcoders] Opening a Socket Connection on the same machine where the browser is running

2006-02-03 Thread Srinivas Chennamaraja




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,

SriniOn 2/3/06, Theodore E Patrick [EMAIL PROTECTED] wrote:
The magic answer here is to serve a 'crossdomain.xml' Policy file fromlocalhost. This will allow the Flash Player to speak with the socket onlocalhost and communicate seamlessly.This is how IFBIN Installation works.
http://localhost:5505/crossdomain.xmlIf IFBIN is installed and running, the above URL will serve a validcrossdomain file. Once the Policy file is digested by the player, you can
then instanciate a Socket, XMLSocket, LoadVars, loadVariables, loadMovieagainst 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 werea 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 thePolicy file.If you have any problems please feel free to email me offlist at either:
Ted.Patrick AT CynergySystems DOT comTed AT powersdk DOT comTed AT ifbin DOT comCheers,Ted :) -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of schennamaraja Sent: Thursday, February 02, 2006 10:43 PM
 To: flexcoders@yahoogroups.com 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 amtrying 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Opening a Socket Connection on the same machine where the browser is running

2006-02-03 Thread Roger Gonzalez





Correct. Consider the case where someone writes a malicious SWF 
that probes the user's localhost ports... "hey, are you running a mail 
server? I'd like to have you send some spam for me!" Or "hey, are 
you running telnet? I'll just report that back to the site you downloaded 
me from."

You need to grant access to the SWF before the player will let it do 
this.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Srinivas 
  ChennamarajaSent: Friday, February 03, 2006 11:25 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Opening a 
  Socket Connection on the same machine where the browser is 
  running
  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 
fromlocalhost. This will allow the Flash Player to speak with the socket 
onlocalhost and communicate seamlessly.This is how IFBIN 
Installation works. http://localhost:5505/crossdomain.xmlIf 
IFBIN is installed and running, the above URL will serve a 
validcrossdomain file. Once the Policy file is digested by the player, 
you can then instanciate a Socket, XMLSocket, LoadVars, loadVariables, 
loadMovieagainst 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 werea 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 thePolicy file.If 
you have any problems please feel free to email me offlist at either: 
Ted.Patrick AT CynergySystems DOT comTed 
AT powersdk DOT comTed AT ifbin DOT 
comCheers,Ted :) -Original 
Message- From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of schennamaraja Sent: Thursday, February 02, 2006 
10:43 PM  To: flexcoders@yahoogroups.com 
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 amtrying 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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
  

RE: [flexcoders] Opening a Socket Connection on the same machine where the browser is running

2006-02-02 Thread Theodore E Patrick
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of schennamaraja
 Sent: Thursday, February 02, 2006 10:43 PM
 To: flexcoders@yahoogroups.com
 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/