Use The WMI to Ping and Connect to Ports

Category:
Network/Internet
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic Script

More information:
This snippet will let you ping a given port and then connect to it.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: