Forum Multiplayer Unity3D connection problem with live server test

Discussion and help relating to the PlayerIO Multiplayer API.

Unity3D connection problem with live server test

Postby ferx_zero » January 19th, 2019, 9:20 am

Hello,

Recently, I have problem connecting Unity3D / Net Client to PlayerIO in my current project(It's work fine before)
The problem is when the client "Join room" it will not respond and after sometime give error result
"NetworkIssue; EndRead failed. IOException EndRead failure / NetworkIssue; receivedBytes == 0"
It's only happened with Live Server, in Local Development test there is no problem.

#Unity3D (latest version)
---------------------------------------
Debug.Log("++++ Authenticate ..." );
PlayerIO.Authenticate( "testing-dbp4dwy9jeqagecvg7kxdw", "public",
new Dictionary<string, string>
{
{ "userId", "simpleXX" }
},
null,
delegate (Client client)
{
Debug.Log("++++ CreateJoinRoom ..." );
client.Multiplayer.CreateJoinRoom("XroomX", "PKWR_v100", true, null, null,
delegate(Connection connection){
Debug.Log("++++ Connection Success !!" );
}, delegate(PlayerIOError error)
{
Debug.Log(error.Message);
});
},
delegate (PlayerIOError error)
{
Debug.Log(error.Message);
}
);
---------------------------------------
Output : (Live Server test)
++++ Authenticate ...
++++ CreateJoinRoom ...
NetworkIssue; EndRead failed. IOException EndRead failure / NetworkIssue; receivedBytes == 0
---------------------------------------
Output : (Local Development Server test)
++++ Authenticate ...
++++ CreateJoinRoom ...
++++ Connection Success !!


I do a test connection with Flash and Its work fine.

#Flash
---------------------------------------
trace( "++++ Authenticate ..." );
PlayerIO.authenticate ( Display.stage, "testing-dbp4dwy9jeqagecvg7kxdw", "public", { userId:"simpleXX" }, null,
function( client:Client ):void
{
trace( "++++ CreateJoinRoom ..." );
client.multiplayer.createJoinRoom (
"XroomX", "PKWR_v100", true, null, null,
function (con:Connection):void
{
trace( "++++ Connection Success !!" );
},
function ( e:PlayerIOError ):void
{
trace( "++++ Connection Error :" + e.message );
});
},
function( e:PlayerIOError ):void
{
trace( String(e) );
});
---------------------------------------
Output : (Live & Local Development Server test)
++++ Authenticate ...
++++ CreateJoinRoom ...
++++ Connection Success !!

Currently I don't have any clue to resolve the problem, any help will be appreciated

-Ferry
ferx_zero
Paid Member
 
Posts: 4
Joined: February 22nd, 2012, 3:37 am

Re: Unity3D connection problem with live server test

Postby orenjuslabs » August 18th, 2019, 4:49 pm

Hmmm...I also experienced the problem.
https://playerio.com/forum/viewtopic.php?f=18&t=36666

Have you got a solution?
orenjuslabs
 
Posts: 5
Joined: August 14th, 2019, 3:25 pm

Re: Unity3D connection problem with live server test

Postby qugengames » October 30th, 2019, 4:26 pm

orenjuslabs wrote:Hmmm...I also experienced the problem.
https://playerio.com/forum/viewtopic.php?f=18&t=36666

Have you got a solution?


Just started experiencing this issue... Any luck getting an answer?
qugengames
 
Posts: 34
Joined: April 24th, 2018, 11:19 pm


Return to Multiplayer



cron