Forum General Tutorials don't work locally

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

Tutorials don't work locally

Postby Andrew[net21] » March 18th, 2013, 8:49 am

When I upload dll with compiled server-side tutorial code to your server everything works fine. But when I try to run tutorials locally (remove comments from line
Code: Select all
client.multiplayer.developmentServer = "127.0.0.1:8184";

and start server with same dll on my PC) server logs:
Image
client showing "Connecting", traces:
Code: Select all
Sucessfully connected to player.io

and doesn't enter to the handleJoin function.

System: windows 7 ultimate x64.
I tried "telnet 127.0.0.1 8184" and it was fine.
I tried the same code on my notebook with windows xp and everything worked fine.
Please help to fix.
Andrew[net21]
 
Posts: 3
Joined: March 17th, 2013, 8:12 am

Re: Tutorials don't work locally

Postby Benjaminsen » March 19th, 2013, 11:22 am

Not sure what exactly is going on there as it looks like the connection where made.
Do any of the error-handlers trigger?

The problem could be related to localhost ipv6 issues in Windows 7. If you have a line like below in your hosts file.

Code: Select all
::1             localhost


Replace it with

Code: Select all
#::1             localhost
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Tutorials don't work locally

Postby Andrew[net21] » March 20th, 2013, 9:10 am

My hosts file contains only:
127.0.0.1 localhost

Flash client performs this function:
Code: Select all
//Create pr join the room test
client.multiplayer.createJoinRoom(
   "drawpad",   //Room id. If set to null a random roomid is used
   "DrawPad",   //The game type started on the server
   true,        //Should the room be visible in the lobby?
   {},   //Room data. This data is returned to lobby list. Variabels can be modifed on the server
   {},   //User join data
   handleJoin,   //Function executed on successful joining of the room
   handleError   //Function executed if we got a join error
);

but doesn't perform "handleJoin" and doesn't perorm "handleError". :(

Again, if I comment line
Code: Select all
client.multiplayer.developmentServer = "127.0.0.1:8184";

and upload the same DrawPad.dll to your server then client works fine and performs handleJoin.

Don't know what can I do to try to fix this.
Andrew[net21]
 
Posts: 3
Joined: March 17th, 2013, 8:12 am

Re: Tutorials don't work locally

Postby Henrik » March 20th, 2013, 11:55 am

What does your development server say? Does it get the connection attempt?
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: Tutorials don't work locally

Postby Andrew[net21] » March 20th, 2013, 1:32 pm

Henrik wrote:What does your development server say? Does it get the connection attempt?

Development server says:
Server Started
========================
(waiting for connection)

Trying last loaded dll

Using Game Dll: DrawPad.dll
========================
(dll: C:\Develop\Network\PlayerIO\Flash\Example - Multiplayer - DrawPad\Serverside Code\Player.IO Test Server Project\bin\Debug\DrawPad.dll)

And when i start client server says:
=====[ Room Started: DrawPad ]=========
Game is started
>User Guest-3984 (1): Joined game
>User Guest-3984 (1): Left game
RoomId: drawpad

=====[ Room Closed ]===================
Andrew[net21]
 
Posts: 3
Joined: March 17th, 2013, 8:12 am


Return to General



cron