Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

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?
Avatar of Robberbaron (robr)
Robberbaron (robr)
Flag of Australia image

what error message and number does the connect method return ?
<< 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...
Or use the same binary account than the executable then open a session on that account and attempt a telnet connection on the server...
Avatar of al4629740

ASKER

How do I ping a specfic port 1433

ip address: xx.xxx.xxx.xxxx
If that port is blocked, what do I tell their administrator to do, in order to clear the path for my program?
ASKER CERTIFIED SOLUTION
Avatar of Racim BOUDJAKDJI
Racim BOUDJAKDJI
Flag of Algeria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Racimo, when you said "ping it.  use shell + cmd line..."  Do you have an example in VB6?