detonatorss 0 Posted April 25, 2017 Report Share Posted April 25, 2017 (edited) So what i should have to do? how do i can check if the server is open, if i do a ping it ping to host, not to the server, so what you recomend me? Ping pingSender = new Ping(); IPAddress address = IPAddress.Parse("127.0.0.1"); PingReply reply = pingSender.Send(address); if (reply.Status == IPStatus.Success) { serverStatus.Checked = true; } else { serverStatus.Checked = false; } Edited April 25, 2017 by detonatorss Quote Link to post Share on other sites
CDawg 229 Posted April 25, 2017 Report Share Posted April 25, 2017 How is this related to TC, and what are you trying to accomplish by pinging the server through an application? Quote Link to post Share on other sites
Traesh 0 Posted April 26, 2017 Report Share Posted April 26, 2017 CDawg : I think he want to know if a TC server is running on the server, to display a "Server Online/Offline" message You can't just ping, ping will just tell you your hardware is up and can response. If you want to specifically check if TC is running, you must check if the server is listening on worldserver port (8085 on master if i remember well) Check this : http://stackoverflow.com/questions/2836674/determine-if-a-server-is-listening-on-a-given-port Quote Link to post Share on other sites
detonatorss 0 Posted April 28, 2017 Author Report Share Posted April 28, 2017 thank you Traesh :3 i will do it now Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.