I've been trying to search this for long, and found using winsock but the problem is, I need to open the other vb6 application (in our case we have distributed system connected via network) whenever I need to check the connection status to its server, and our teacher said that it must not be dependent on the other application. An application from one site can check the connection status of the sql server from the other computer in another site... I just need the code in checking it, does someone know it?
the code goes like this:
CODE IN MY FORM_LOAD SUB:
Winsock.RemoteHost = "IP address of the other computer"
Winsock.LocalPort = 15151 'open the port on the local machine
Winsock.Listen ' start listening
CODE I PUT WHEN SAVE BUTTON IS CLICK:
If Winsock.State = sckConnected Then
'do action when connected
else
'not connected
endif
This code works when the other vb6 application is open...
But i can't use this since I need to check the server status of the other site without running the other vb6 application....

New Topic/Question
Reply



MultiQuote





|