What would be a good way to connect to a program hosted on a computer just to check if it’s online on a website.
Example: on the website if online = true show tick else show cross,
What would be a good programming language for this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Any language that has support to sockets will do. (That is, in some form or another, pretty much all of them).
As for monitoring the application, it depends on what kind of application it is.
If this application has a network connection (ie. an open port waiting for a connection), you can just try to connected there.
If it doesn’t, you would need to have a daemon/service-like application running on the same machine (or network, that depends on the OS said machine is using) listening to such connection from your website and reporting whether the application is running or not.