Flash server/client architecture using sockets

Posted on 2009-02-11
Last Modified: 2013-11-11
I am beginning to work on a Flash project which is an application using client/server socket architecture.
On my server, i will be running a Java server, listening on a port greater than 1024 since Flash security model does not allow me to use ports lower than 1024.
On the client side, a flash application will be used residing on the same host as the server; using a web page/web server.
My question is that should the client make a port forwarding on her router/modem/firewall in order to connect to my server?
If port forwarding is in play, what might be the alternative solution that does not include port forwarding?

Thanks in advance.
Question by:lexicon_dominus
    LVL 4

    Accepted Solution

    Hi lexicon_dominus,

    The client just need to know what DNS and port to connnect to and in your server side you need to open the port for your server ip in your router and your firewall to allow incoming connection.

    Let say your DNS is and your java server are listerning on port 9999 then in the flash client setting would be:

    function connect() {
          mySocket = new XMLSocket();
          mySocket.connect(" ", 9999);
    LVL 4

    Author Comment

    Thank you.
    But, does the client have to open port 9999 in her firewall/router?
    LVL 4

    Assisted Solution

    Hi lexicon_dominus,

    Nop the client dont need to open their port only your server need to open port 9999. because your server are listening for incoming connecting on port 9999.
    LVL 4

    Author Comment

    Thank you.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    php email redirect 5 7
    Website user account and password management 3 57
    Play RTMP without Flash 3 152
    Sharepoint to FTP? 3 38
    Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
    Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
    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.
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    728 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

    19 Experts available now in Live!

    Get 1:1 Help Now