Author Topic: Serverinstance from mobile device is not recognized  (Read 2768 times)

Z3R0Skull

  • Guest
Serverinstance from mobile device is not recognized
« on: November 25, 2013, 05:41:03 PM »
Hi

I have a problem with the server setup in TNet.
I set up a scene to search servers or start a server. If I start a server on my PC (Win7) I can see the server on my mobile device (Running android 4.4). But if I start it on the mobile device it doesn't show up on the Windows build. The same thing happens if I am using the example scenes coming with TNet.
What am I doing wrong? Is the lobby server the problem? Or the ports? Or does something get blocked in one direction? (I start the server using TNServerInstance.Start(tcpPort, udpPort, file, lobbyPort); same as in the "ExampleMenu.cs").
Once connected, everything is working as expected. The only problem is that a server started by the mobile build is not added to TNLobbyClient.knownServers.list.

Thanks in advance!

Regards
Z3R0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Serverinstance from mobile device is not recognized
« Reply #1 on: November 25, 2013, 07:58:03 PM »
All I can think of is that the device may not support broadcasting messages to LAN.

Z3R0Skull

  • Guest
Re: Serverinstance from mobile device is not recognized
« Reply #2 on: November 27, 2013, 03:17:59 PM »
I don't think this is the problem. I did a build for windows and run it on two windows machines. But there is the same problem.
The "main PC" is used to build and if I start a server with the same buld on that PC, the server DOES show up on the second windows machine. However if I start a server on the second machine it does NOT show up on the "main PC".

Do you know where the problem could be? I'm really confused why this is happening.

Z3R0

Edit: I can connect to the server started by the second machine if I type in the IP that is shown in the list (on second machine) manually.
« Last Edit: November 27, 2013, 03:30:56 PM by Z3R0Skull »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Serverinstance from mobile device is not recognized
« Reply #3 on: November 28, 2013, 01:24:00 AM »
In my case I'm able to start servers on all my devices -- PC, Mac, android tablet and android phone and they all show up. So as I said, perhaps it's something related to your network setup with how it handles broadcasts. Permissions perhaps? I'm not sure.

xandeck

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 3
  • Posts: 54
    • View Profile
Re: Serverinstance from mobile device is not recognized
« Reply #4 on: February 19, 2014, 05:16:08 PM »
Hello, sorry to ressurect this topic... just a question: so I can start my own servers from an Android tablet? or mobile phone?
Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Serverinstance from mobile device is not recognized
« Reply #5 on: February 20, 2014, 12:58:30 PM »
Yes you can.