Forum ‹ General ‹ Problem with server connection
7 posts
• Page 1 of 1
Problem with server connection
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)
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
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
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
-

Oliver - .IO
- Posts: 1136
- Joined: January 12th, 2010, 8:29 am
Re: Problem with server connection
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
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".
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: 2
- Joined: June 21st, 2010, 8:50 am
Re: Problem with server connection
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.
::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.
-

HAnz - Posts: 46
- Joined: August 7th, 2010, 2:59 pm
Re: Problem with server connection
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
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
-

Oliver - .IO
- Posts: 1136
- Joined: January 12th, 2010, 8:29 am
Re: Problem with server connection
I had this problem too.
However, putting:
client.multiplayer.developmentServer = "127.0.0.1:8184";
worked for me.
hope that helps someone!
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
7 posts
• Page 1 of 1