Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if IP Address exists?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00296002
Message ID:
00296003
Views:
24
>I am using the CREATEOBJECTEX() function successfully, but it hangs when the server that has the COM object is not accessible on the internet. I have to terminate the application.
>
>Is there any way to test and IP Address to see if it responds ("ping" it) seamlessly within a VFP app?

Here is a really quick and dirty way.

* store results of ping in a text file
run ping 142.233.121.1 > pingtest.txt

* then read into a file using filetostr and look for "unreachable" or "request timed out" to designate a failure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform