Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Noi14 on January 30, 2014, 04:57:10 AM

Title: TNetServer host
Post by: Noi14 on January 30, 2014, 04:57:10 AM
Hello,
I'm using TNet for an app in unity. So now I want to put my Tnetserver on my dedicated server in order to do multiplayer version of the game. When I put my TnetServer online I don't understan how to prevennt other apps to connect in that server. I want to prevent that anyone can connect to it. Maybe I think I need authentication in order to connect.
Title: Re: TNetServer host
Post by: ArenMook on January 30, 2014, 04:56:57 PM
Give it a unique version number in TNet.Player. That would be the easiest thing to do. If the client's and server's version numbers don't match, TNet aborts the connection right away.
Title: Re: TNetServer host
Post by: Noi14 on January 31, 2014, 05:50:16 AM
Thank for your fast reply.
Is there a tutorial for this?
I'm new with unity and TNet and I don't understand how to do
Title: Re: TNetServer host
Post by: ArenMook on February 01, 2014, 07:02:24 PM
Just open TNPlayer.cs and modify the version number. You'll need to recompile the server afterwards.