maxsimpson
asked on
VB API to check if a port is open
I am looking for a VB API to test if a remote port is open.
I currently use VB to generate a batch file and shell the batch file but there must be an API that could make the process a lot easier.
Any help or coding examples will be appreciated.
I currently use VB to generate a batch file and shell the batch file but there must be an API that could make the process a lot easier.
Any help or coding examples will be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The code loos roughly like this...
Public Sub CheckRmPort()
StartWinsock vbNullString
theSocket = ConnectSock("SERVER_IP", SERVER_PORT, vbNullString, Me.hwnd, False)
end sub