?
Solved

VB API to check if a port is open

Posted on 2003-03-11
2
Medium Priority
?
244 Views
Last Modified: 2013-11-13
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.
0
Comment
Question by:maxsimpson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Expert Comment

by:berylwilson
ID: 8117201
u can do this using winsock api...

The code loos roughly like this...

Public Sub CheckRmPort()
     StartWinsock vbNullString
     theSocket = ConnectSock("SERVER_IP", SERVER_PORT, vbNullString, Me.hwnd, False)

end sub
0
 

Accepted Solution

by:
shijaz_a earned 225 total points
ID: 8117424
Download the API Guide from www.allapi.net
Its a freeware app. that lists out around 925 APIs along with comments on how to use them as well as numerous examples. It's great and I'm sure it has the answer to ur problem.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question