Author Topic: Web Player TNServer.exe connection issues  (Read 1786 times)

meta87

  • Guest
Web Player TNServer.exe connection issues
« on: December 18, 2013, 08:01:07 PM »
I'm experiencing a peculiar issue when using the web player to connect to TNServer.exe. I am using the TNAutoJoin script. On some builds, when I send the TNManager.Connect function (via a button press), I see a connection being made, followed by an immediate disconnection on the server. OnNetworkConnect is never called.

Other builds it works just fine.. With no obvious changes between builds. PC builds never have the issue. I am using the most recent asset store version 1.8.4. Unity version 4.31 on osx 10.82. Chrome and Firefox.

I've read that the web player should dump a log in ~Library/Logs/Unity ... or similar, but I get nothing. I did switch the webplayer to Development in release channels. I have experienced the issue running TNServer.exe locally and on a Digital Ocean VPS. Any ideas for what could be causing such issues greatly appreciated!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Web Player TNServer.exe connection issues
« Reply #1 on: December 19, 2013, 12:28:55 PM »
Connect followed by immediate disconnect, and only on the web player... sounds like a policy server issue. Unity requires the server you're connecting to to have a policy server active. Did you set it up? Also don't use UDP (SendQuickly) as each UDP call also requires a policy server request (Unity doesn't cache this, which is stupid to say the least).

meta87

  • Guest
Re: Web Player TNServer.exe connection issues
« Reply #2 on: December 22, 2013, 12:46:48 AM »
Somehow I'd missed the Policy Server... Haven't had much time to test it, but so far it seems to be working. Thanks!