Posted on 2006-05-20
Last Modified: 2006-11-18
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(, 10000);

Why ? What do I need to do ?
Thank you.
Question by:matthew016
    LVL 7

    Accepted Solution

    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.

    LVL 11

    Assisted Solution

    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 then you can initiate connections only to this host, and not even not to subdomain of it, like You can overcome this behaviour by using policy file:
    LVL 9

    Author Comment

    Thank you

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now