Yes, that should work (syntax is right if it compiles - whether it does what you expect is a different thing - that depends what you expect!) - I wouldn't use the "True" on the Client connection - that is for use with LDServer.
Before even using the If test, just print out the result - you can add frills when the basics work.
If it fails there is a few seconds delay where a timeout is applied.
Or you could just check the client connection:
Before even using the If test, just print out the result - you can add frills when the basics work.
Code:
TextWindow.WriteLine("Testing...")
result = LDClient.CheckServer("192.168.0.96:15731")
TextWindow.WriteLine(result)
If it fails there is a few seconds delay where a timeout is applied.
Or you could just check the client connection:
Code:
result = LDClient.Connect("192.168.0.96:15731", "False")
TextWindow.WriteLine(result)