Another detail I just saw, my clients always connect with a port around 49000 and the instructor connects with a port around 1500. Dunno if that can help.
EDIT : Also, when I try to connect as a client from the instructor computer I get disconnected. My ambulance spawn in a parking correctly but I'm on my own, can't see the other clients. The difference between the instructor and the clients is that the instructor only have a overview camera and an interface that allows him to follow any clients.
So the problem look to come from the computer : I'm "hosting" the TNServer on the same computer that the instructor. This is the computer that keep having problems.
That's why I tried to create a server instance inside Unity. But when I try the code psycho2day give me, I cannot find the other clients anymore. I'll try to be clear : To follow the clients, I change the target of the Camera follow script by using this code :
// Make the first button. If it is pressed, follow the poste 1
if(GUI
.Button(new Rect
(20,
40,
180,
20),
"Poste 1")) {
camInstructeur.GetComponent<SmoothFollow>().target = GameObject.Find ("AmbulanceUnit1(Clone)").transform;
}
Works like a charm when using TNServer.exe and staying connected long enough
2nd EDIT : I tried to put the TNServer.exe on another computer. My instructor computer stays connected if I run it as a client (with an ambulance running), but time out if I connect it as an instructor. The instructor prefab has only an Instructor Gameobject ( with the TNObject component and the Gameplayer script) and a camera. The script above is written in the GamePlayer script.