If all you want to do is check a port you can use wwSocket to connect and see if it works.
o = CREATEOBJECT("wwSocket")
o.nTimeout = 5 && seconds
IF ! o.Connect("
www.west-wind.com",80)
? "Failed: " + o.cErrorMsg
RETURN
ENDIF
+++ Rick ---
>How about InternetGetConnectedState:
http://www.news2news.com/vfp/?group=92&function=99 and
>
http://www.news2news.com/vfp/?example=68&function=99>I've seen some other discussions here so there are probably some other good solutions too if you do a search here.
>>I am writing an application for shuttling files between remote computers and local worstations.
>>There will be both persistant and transient IP connectons. some users will need to call thier IP for access other will have some sort of persistance such as DSL ISDN, Tx, or, cable modem.
>>
>>I am using WWFTP for this purpose and need some info regarding how to detect a live connection. How do I know if a connection to the Internet is already established, and if not how would you suggest that I code to establish a connection with the users IP. Do I need to use the WWIPSTUFF::Rasdial?
>>
>>Thanks
>>
>>Glenn