Checking if a port is listening on Windows

I have a PHP webserver running on port 35035 (i.e. if I visit http://127.0.0.1:35035/ HTML is returned). Is there a way on Windows with Xojo to check that the server is still running? Occasionally it spontaneously closes. I.e. how would I get the contents of the page served at http://127.0.0.1:35035?

http://documentation.xojo.com/index.php/HTTPSocket.Get

You can also just use a TCPSocket and try to connect to the port… If there is a connection made, it’s running… No connection, it’s down…