So here's the most basic example.
1. Start the TNServer as a lobby server on a remote PC. Note that it has to be a remote PC as this is a lobby server, not a game server. I started it on my Amazon EC2 micro instance, for example.
tnserver.exe -name "Remote Lobby" -tcpLobby 5129
2. Create a new scene, add a game object, add a new script to this game object:
using UnityEngine;
using TNet;
public class Test : TNBehaviour
{
void Start ()
{
TNServerInstance.serverName = "My Server";
TNServerInstance.Start(5127, 0, null, TNServerInstance.Type.Tcp, Tools.ResolveEndPoint("your.lobbyServer.com:5129"));
}
}
3. Assuming you changed "your.lobbyServer.com" to be your remote server's address, hit Play. You should now see the game server get added to your lobby server and stay on the list.