TNManager : MonoBehaviour and therefore I need unity to test if the server is up?
I am looking for a way, preferably with either pure mono code like the TNetServer runs without unity or standard linux command line tools which can run automated tests against the servers from a shell which does not have unity installed to determine if the servers are up and running and available.
From
http://superuser.com/questions/621870/test-if-a-port-on-a-remote-system-is-reachable-without-telnetI have found Netcat seems to work!
nc -v -z -w2 192.168.0.1 5127
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif en1
src 192.168.0.2 port 55255
dst 192.168.0.3 port 5127
rank info not available
TCP aux info available
Connection to 192.168.0.1 port 5127 [tcp/*] succeeded!
And when the TNetServer it is not running it outputs
nc: connectx to 192.168.0.1 port 5127 (tcp) failed: Connection refused