Author Topic: Question about player create new server  (Read 803 times)

alewbpr

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 5
    • View Profile
Question about player create new server
« on: May 05, 2017, 06:28:16 PM »
Hey guy I am noob with TNet and I'm trying to build a room that the player is the host:
  1.             TNLobbyClient lobby = GetComponent<TNLobbyClient>();
  2.             TNServerInstance.Type type = (lobby is TNUdpLobbyClient) ?
  3.             TNServerInstance.Type.Udp : TNServerInstance.Type.Tcp;
  4.             TNServerInstance.serverName = "my server";
  5.             TNServerInstance.Start(6119, 6120, null, type, Tools.ResolveEndPoint("localhost", 5129));
  6.  
But when I press start from editor the independent server shows me this log without stopping until I desconect.


Anybody knows if I am doing something wrong or that is a bug from the server?

cmifwdll

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 149
  • Posts: 285
  • TNet Alchemist
    • View Profile
Re: Question about player create new server
« Reply #1 on: May 06, 2017, 06:46:39 PM »
Yeah it's a bug with the lobby server.

Try mythikos' fix here: http://www.tasharen.com/forum/index.php?topic=15240.0