Check for Blocked port in VB6

My connection string on my program won't pass at some locations.  It is port 1433 for SQL Server.  Is there a way to check to see if this port is being blocked in VB6 and then output a message?
al4629740Asked:
Who is Participating?
 
Racim BOUDJAKDJIConnect With a Mentor Database Architect - Dba - Data ScientistCommented:
Try opening a telnet connection...open a cmdline then type telnet IP PORT. ex: 13.168.21.10 1433

Hope this helps...
0
 
Robberbaron (robr)Commented:
what error message and number does the connect method return ?
0
 
Racim BOUDJAKDJIDatabase Architect - Dba - Data ScientistCommented:
<< Is there a way to check to see if this port is being blocked in VB6 and then output a message?>>
ping it.  use shell + cmd line...
0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
Racim BOUDJAKDJIDatabase Architect - Dba - Data ScientistCommented:
Or use the same binary account than the executable then open a session on that account and attempt a telnet connection on the server...
0
 
al4629740Author Commented:
How do I ping a specfic port 1433

ip address: xx.xxx.xxx.xxxx
0
 
al4629740Author Commented:
If that port is blocked, what do I tell their administrator to do, in order to clear the path for my program?
0
 
al4629740Author Commented:
Racimo, when you said "ping it.  use shell + cmd line..."  Do you have an example in VB6?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.