• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 553
  • Last Modified:

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?
0
al4629740
Asked:
al4629740
  • 3
  • 3
1 Solution
 
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
 
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
What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

 
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
 
Racim BOUDJAKDJIDatabase 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
 
al4629740Author Commented:
Racimo, when you said "ping it.  use shell + cmd line..."  Do you have an example in VB6?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now