Forum General Problem with server connection

Any issues or discussions relating to Flash development are welcome here.

Problem with server connection

Postby Dulcin » January 20th, 2010, 3:59 am

Okay so I downloaded the Flash Combo Pack, did the tutorial, installed MS Visual C# 2008 Express Edition (I even registered the product!) and pressed F5 to run the server.

Next I did all the following steps: opening the fridge magnet game in flash and changing the ID. I saved and hit cntrl+enter...

...Connecting

...Unable to connect to server

What did I do wrong? The server is running but the console tells me:

Ready.
========================
(waiting for connection)
Dulcin
 
Posts: 8
Joined: January 14th, 2010, 4:59 pm

Re: Problem with server connection

Postby Oliver » January 20th, 2010, 9:01 am

Hi Dulcin,

Hmm... That's wierd. The flash client will per default attempt to connect to localhost on port 8184, which you should be able to verify by finding this line:

client.multiplayer.developmentServer = "localhost:8184"

It might be either
a) some firewall setting blocking the dev-server from listening or
b) some network routing thing preventing the client from reaching the server.

An interesting test could be to use the telnet command connect to localhost on that port "telnet localhost 8184" and see if it manages to connect, when the server is running. Perhaps that will tell you where the issue is.

Tell us what you learn, and if you fix it.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Problem with server connection

Postby Dulcin » January 20th, 2010, 1:31 pm

It seemed to work fine this morning, without any problems (and no changes)... so problem solved! :)
Dulcin
 
Posts: 8
Joined: January 14th, 2010, 4:59 pm

Re: Problem with server connection

Postby yailenko » June 22nd, 2010, 12:01 pm

Hi everyone! I had the same problem with connection and I've just found a solution.

In my case it was because of Flixel. So if you are using Flixel then don't forget to change the first parameter of PlayerIO.connect from "stage" to "FlxG.stage". :)
yailenko
 
Posts: 16
Joined: June 21st, 2010, 8:50 am

Re: Problem with server connection

Postby HAnz » August 7th, 2010, 4:32 pm

I also had this problem, for me it was this line in the Hosts file in Vista (it's probably the same in win7):
::1 localhost
if you change that to:
127.0.0.1 localhost
it might work, or if you don't want to edit the Hosts file you could simply try using 127.0.0.1 in flash instead of localhost, for me that produces the same result.
I make games and stuff.
User avatar
HAnz
 
Posts: 46
Joined: August 7th, 2010, 2:59 pm

Re: Problem with server connection

Postby Oliver » August 10th, 2010, 12:14 pm

HAnz! I could... just kiss you!

Thank you! You've just identified why these people have issues with this old bug, and now we can implement a fix!

Our development server does not listen to IPv6, but apparently vista maps "localhost" to the ipv6 local host address "::1"

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Problem with server connection

Postby RedBoxGames » January 7th, 2011, 12:30 am

I had this problem too.
However, putting:

client.multiplayer.developmentServer = "127.0.0.1:8184";

worked for me.
hope that helps someone!
RedBoxGames
 
Posts: 1
Joined: January 6th, 2011, 11:52 pm


Return to General