Page 1 of 1

How to test for network connectivity to server?

Posted: Tue Aug 02, 2011 9:20 pm
by Wysocki
I'm trying to create a scene that can tell me "the server is not accessible" (the machine, not MLserver). Obviously MLserver would never be running so I can't use a server variable. How can I test if the server (or any machine) is pingable and then use that info in a scene?

Re: How to test for network connectivity to server?

Posted: Tue Aug 02, 2011 11:35 pm
by CinemarDave
Just use the {{mlserverconnection}} variable.

Re: How to test for network connectivity to server?

Posted: Wed Aug 03, 2011 11:10 am
by Wysocki
The {{mlserverconnection}} variable appears to be TRUE if MLserver is running. I want to know if the actual computer is running and available on the network. Plus I'd like to query the online status of other computers on the network.

Re: How to test for network connectivity to server?

Posted: Fri Aug 05, 2011 3:26 pm
by rondepping
Did you try using MLPing?

From the wiki, it been awhile sicne I looked at it but that might be a start.

MLPing|{{some IP address}} The ping is done as a MLWorker process and the results are returned in a server variable called server_{{some IP address}}_internetstate. The value will be 0 (not pingable) or 1 (pingable).

Edit: Opps I missed that you want use it for the MLserver machine. Maybe use IIS / Appache on the Client machine and have a web page that does the ping and displays the result and show that in a weblobby window?

Re: How to test for network connectivity to server?

Posted: Fri Aug 05, 2011 3:55 pm
by Wysocki
Yeah, my main issue is checking to see if the server machine is running. Sometimes my kids will be on that machine and somehow mlserver ends up terminated, but I'd like to know what's going on without having to run upstairs to see the server. I could create an information/diagnostics scene that would describe the problem if I could get the ping status of the server at the client.

All my clients do a Wake-On-Lan command to the server when they start up, but then I'd like to see if/when it responds.