XMLSocket.connect

Hi,
I'm trying to connect to a Java application,
it works in my fla document when I press ctrl+Enter.
I put the HTML document with the SWF file on a free server on the internet,
but then it refuses to connect.

socket.connect(80.1.2.3, 10000);

Why ? What do I need to do ?
Thank you.
LVL 9
matthew016Asked:
Who is Participating?
 
Ramy_atefConnect With a Mentor Commented:
Hi
if your code is right, then there is a big chance that free server provider is blocking the port you are using 10000
check with them if there are any avaliable ports you can use.

Regards,
0
 
BuffonConnect With a Mentor Commented:
Hi.
Before blaming the hosting company, which can be true, there are other things to fix. I see that you connect to some static IP. The problem here that flash sand box will block such connection due to default setting which will block all connection that not to local server, for example if you put your flash on site www.freehosting.com then you can initiate connections only to this host, and not even not to subdomain of it, like subdomain.freehosting.com. You can overcome this behaviour by using policy file:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001623.html
0
 
matthew016Author Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.