Accessing my socket from my website

[LEFT][FONT=Arial][SIZE=2]Hey everyone!
I am actually trying to program a multiplayer game:hitman:. I made a socket server usign Javascript and i can acces it from a local .swf. The problem comes when i try to access it from the web. :m:
Here are some important points:

  1. I used my internet ip and the port 5677 to connect to my server, it works.
  2. Many friends tried to connect to my server, they succeeded. Their computers are not connected via LAN to mine (where the java server is)
  3. I already made a crossdomain.xml file allowing all accesses.("*")
  4. I loaded this file usign System.security.loadPolicyFile(“file url”) function.
  5. I also added that: System.security.allowInsecureDomain(“server ip”);

I really dont know how to get it working! And… if anybody have a link to a php socket programming tutorial, please share :P.

Thanks in advance! :hr:

[/SIZE][/FONT][/LEFT]