Check Server Connectivity

Hello everybody,

I have my Teamspeak server running mostly with no issues. However, sometimes the server instance gets bugged and while it’s still running users can’t connect to it. In that case I have to restart the server by accessing my Linux server, etc.

I’m doing a shell script to do this automatically, and for the time being I’m using the API at cleanvoice.ru. The thing is that I would like to be able to check if the server is accesible without using 3rd party APIs or apps. How would you go about checking this?