Do not use on any
shared computer
September 6, 2008 01:34pm pdt
 
[x]
Attachment Details

Two player online game in Flash without dedicated server?

Tags: online, player, games, two
I am new to Flash, but an experienced game developer who made several multiuser games in various languages, but this time I am looking to Flash as the new Actionscript 3.0 seems quite promising... I have almost no experience with Flash coding from earlier though, so please bear with me...

I want to create a real-time two player game in Flash, played over an online connection. Normally, to make a real-time multiuser game you need a dedicated server or similar that will run a socket service for your clients to connect to.

Unfortunately, I do not have money to shell out for this as this is just my hobby project, I only have access to a standard web host with some basic scripting abilities like Perl or ASP, but I am wondering if there is a way to allow two Flash clients to connect directly if the IP address of both are known?

From what I have seen so far, there are some restrictions on how clients can connect. Only to the originating server, or perhaps to other IPs that's listed somehow on that server. The details seem a bit fuzzy to me, would appreciate some advice.

Basically, my idea is as follows:

1. Users connect to my webpage, where a script picks up their IP address and stores it in a small database.
2. Each connected client accesses this database and downloads the current IP list periodically. The list is updated continuously to ensure clients who left are no longer listed.
3. A client can then connect directly to any IP in the list, thus enabling a direct connection to that other client.
4. The game starts, and the clients will communicate everything directly through a socket connection. Making the communication fast (and inexpensive for me :) )...

I am aware there might be some firewall issues here, but besides that, is there a way to have two Flash clients connect directly in this way?

Oh, by the way, I only need to target AS3 clients.

Thanks :)
Start your free trial to view this solution
Question Stats
Zone: Gamers
Question Asked By: sinsro
Question Asked On: 04.16.2007
Participating Experts: 4
Points: 250
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by Blixtsystems
Expert Comment by Blixtsystems:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by sinsro
Author Comment by sinsro:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Blixtsystems
Expert Comment by Blixtsystems:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Yttribium
Expert Comment by Yttribium:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by jgordos
Expert Comment by jgordos:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by dbanttari
Expert Comment by dbanttari:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by dbanttari
Expert Comment by dbanttari:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34