PDA

View Full Version : Socket/IP connection question



LordArkain
September 5th, 2006, 11:58 AM
Hello all. I have a large book known as "Flash MX 2004 ActionScript Bible", by Robert Reinhardt and Joey Lott. Within this book is many things, and one of them caught my attention. The section that caught my eye was Socket Connections and Local Connections. I have tried messing around with what they gave me, and have managed to create something. I have a file where the person can enter a IP address and then it will try and connect to that ip addres. Here is where I have the problems and questions. Do I need to include a port number? Can it be any random port number (that is above 1024 of course)?
The last question has to do successfull connections. I have Flash Commonication Server MX, and when it is running, I can enter my own IP and have a successfull connection (of course). But it does not work when I enter my IP for my second computer which does not have Flash Communication Server MX. So, can't you connect to another persons computer without them having to run a server side program? For example, LAN games or programs.

Sniper Jo
September 5th, 2006, 01:07 PM
check your config files or your firewall it might be blocking the connections.

LordArkain
September 10th, 2006, 11:58 AM
Okay, it's working when someone tries to connect to my machine that has Flash Communication Server MX. Sadly it does not work when attempting to connect to a machine without the server running. I am trying to find a way to make a connection to a machine without a server running. Kinda like how some games allow you to create a TCP/IP lan game by entering the hosts IP address and such. Anyone have any ideas?

Lord Impero
September 11th, 2006, 09:07 AM
^as far as i know not possible

blockage
September 11th, 2006, 07:12 PM
You need some kind of server running to pass the messages on to each of the flash clients. Here's a useful tutorial in case you feel like rolling your own...

http://www.gotoandplay.it/_articles/2003/12/xmlSocket.php?PHPSESSID=4

thewebgremlin
September 12th, 2006, 11:00 AM
hi there

you could use this socket server, very simple and easy, and comes with some example clients to

http://palabre.gavroche.net/content/view/18/37/

very easy to use yet very powerful

Jamie