Yup started the TNServer.exe on amazon ec2 with
C:\Users\Administrator\Documents\GameServer\TNServer.exe -name "LobbyServer" -udpLobby 5129
as target.
I was just concerned that TNServer didnt register my game server, as the console of TNServer didnt give any message of it.
That would be a nice feature for TNServer in coming updates, that it writes in console when new game server register to it, for easier debug.
Also
TNServerInstance.Type.Udp
in
TNServerInstance.Start(5127, 5128, null, TNServerInstance.Type.Udp, Tools.ResolveEndPoint(lobbyServerAdress, 5129));
Is that for telling TNServer what type of protocol game server are using or is it to tell game server what type of protocol lobby are using?
##EDIT##I have made some progress, but got a new question in addition of the other ones ->
When starting a new server and register it to the lobby server at amazon I see this in the lobby server console
Why are the clien/gameserver hammering/repeating the register part? If it is to check if server still online, where do I change the interval of the check?
Here are the code for I have so far...
using UnityEngine;
using System.Collections;
using TNet;
public class startServer : MonoBehaviour
{
public string lobbyServerAdress;
// Use this for initialization
void Start ()
{
Debug.Log(Tools.ResolveEndPoint(lobbyServerAdress, 5129));
if (!TNServerInstance.isActive)
{
Debug.Log("Starting server");
TNServerInstance.Start(5127, 5128, null, TNServerInstance.Type.Udp, Tools.ResolveEndPoint(lobbyServerAdress, 5129));
}
else
{
Debug.Log("Server already started");
}
}
// Update is called once per frame
void Update ()
{
if(Input.GetKeyDown(KeyCode.Space))
{
Debug.Log("Server shutdown");
TNServerInstance.Stop();
}
}
}