Author Topic: Tnet 3 example doesn't work Android > PC. Tnet 2 does.  (Read 4835 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Tnet 3 example doesn't work Android > PC. Tnet 2 does.
« on: July 15, 2016, 08:13:21 AM »
Going back to basics, I've built the TNet 3 example in a clean project. I ran it on an Android device (Nexus 7) and in Unity editor. When creating a server on Android, Windows can join. When I create the server in Unity, Android fails to connect,"Connected: False Unable to Connect (Player id #1)."

Doing the same with TNet 2, it works both ways.

I've just tried on my Surface Pro 4 and the example works. So it's an issue with my development PC and TNet 3. How do I go about resolving that? I disabled security (Kaspersky) as the obvious potential culprit but that didn't resolve anything.

edit: The SP4 can't connect to the desktop either.
« Last Edit: July 15, 2016, 08:19:36 AM by Shifty Geezer »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tnet 3 example doesn't work Android > PC. Tnet 2 does.
« Reply #1 on: July 16, 2016, 01:05:16 AM »
Sounds like something is blocking your connections. Try disabling your Windows firewall or at least checking permissions. When you first launch any app you get a dialog in Windows regarding what network access you want to give this app. Once you close that dialog, it won't show up again. Try launching TNServer.exe directly -- it will bring up that dialog again, letting you choose both checkboxes (you'll need to restart the TNServer after). Some other apps like Peerblock intentionally block all inbound connections, preventing server hosting.

If TNet 2 works, it's likely you set the correct permissions for it when you launched the executable, but didn't do this for TNet 3's executable.