• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

Flash server/client architecture using sockets

Hello;
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.
0
lexicon_dominus
Asked:
lexicon_dominus
  • 2
  • 2
2 Solutions
 
H01Commented:
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 www.yourDNS.com and your java server are listerning on port 9999 then in the flash client setting would be:

function connect() {
      mySocket = new XMLSocket();
      mySocket.connect("www.yourDNS.com ", 9999);
}
0
 
lexicon_dominusAuthor Commented:
Thank you.
But, does the client have to open port 9999 in her firewall/router?
0
 
H01Commented:
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.
0
 
lexicon_dominusAuthor 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.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now