• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 725
  • 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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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