FlashServer TCP/IP

Feb 23, 2008 at 1:13am

FlashServer TCP/IP

I have a question, preferably for Olaf Matthes but anyone who knows would be brilliant!

Im using flashserver for a university project and want to connect to various .swf files over the internet. My website is currently hosted by a remote server, do I need to host the website and the .swf files on the same computer that max msp and flashserver is on or can I get around this??

Is crossdomain.xml files and this code the right idea?

System.security.loadPolicyFile(“xmlsocket://flashserverhost.com:31337″);

Any help would be much appreciated,

Cheers
Chambaz

#36002
Feb 23, 2008 at 9:47am

Adam Chambers wrote:
> I have a question, preferably for Olaf Matthes but anyone who knows would be brilliant!
>
> Im using flashserver for a university project and want to connect to various .swf files over the internet. My website is currently hosted by a remote server, do I need to host the website and the .swf files on the same computer that max msp and flashserver is on or can I get around this??
>
> Is crossdomain.xml files and this code the right idea?
>
> System.security.loadPolicyFile(“xmlsocket://flashserverhost.com:31337″);

The website (including the SWF) can be on a different machine. However,
crossdomain.xml has to be on the machine Flash connects to (i.e. on the
machine Max is running on). Some Flash versions download crossdomain.xml
through the connection to Flashserver (as shown in your ActionScript
code above), some Flash versions try it on port 80 and assume there is a
webserver running. So in the end you need to run a webserver on the Max
machine as well.

Olaf

#123313
Feb 23, 2008 at 7:57pm

Hi Olaf cheers for the reply.

Ok so say my version of Flash (ver.8) did download the crossdomain.xml file via the connection to flashserver, would that actionscript be correct? Or does “flashserverhost.com” need to be my domain? getting a bit confused!!

Also do I just place this crossdomain.xml file in the same folder as my max patch?

< ?xml version="1.0"?>



I just want to check Im doing everything right before I give up and set up a webserver on my laptop!!

Thanks a lot for our help,
Adam

#123314
Feb 23, 2008 at 8:17pm

Adam Chambers wrote:
> Also do I just place this crossdomain.xml file in the same folder as my max patch?

Place it in the Max search path (the folder with your Max patch will
work). [flashserver] will indicate that it found the file when you load
your patch.

> < ?xml version="1.0"?>
>
>
>
>

Change http://www.mydomain.net to the hostname or IP of the machine that has
the webserver on it (i.e. the machine your SWF is served from).
You can find an Apple TechNote here:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213&sliceId=2

Olaf

#123315

You must be logged in to reply to this topic.