Solved

determine if firewall is blocking my app thru vb6 code

Posted on 2010-08-13
4
335 Views
Last Modified: 2012-05-10
I have had an ongoing problem with my app that sends info to me using my online jmail component.
In about 100 installs  i get a runtime error 0 and my.does not even run. i have tried my solutations to no avail. How can i determine thu vb6 code if a firewall is blocking my app ?
0
Comment
Question by:isnoend2001
  • 2
4 Comments
 
LVL 5

Assisted Solution

by:KiasChaos83
KiasChaos83 earned 250 total points
ID: 33434494
You can't really tell if a firewall is blocking your connection.

The problem is that a blocked connection has the same behaviour as a connection where the computer doesn't exist. Does that make sense? If you get blocked by a firewall, the firewall doesn't let you know that you were blocked.. it just ignores your request completely.
0
 
LVL 4

Accepted Solution

by:
CarlvanEijk earned 250 total points
ID: 33434585
You could use TCPveiw to work out what ports are being used by your app, and work backwards from there: http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx

If it's the local firewall, you can identify the ports/aps and add specific tcp/udp rules. If you're supplying the application for many machines on the network you can configure the windows firewall via Group Policy
http://technet.microsoft.com/en-us/library/bb490626.aspx

Furthermore, once you've identified the ports you can apply these same rules to the enterprise firewalls, either yourself or via the local sysadmin person. The settings will be specific to the flavour of firewall, so I can;t help with specifics.

Once you've worked all that out, you could add some sort of built in post install test to check if the ports are open and popup a readme for how to resolve firewall issues......
0
 

Author Closing Comment

by:isnoend2001
ID: 33434687
Thanks guys have found it is not the firewall as the user told me his computer name. Then looking at the emails i get on first install i was able to determine that indeed i did get
an email for this user. I usually get about 20 a day with users permission telling me the users pc name os, etc and can never determine who the user is.
0
 
LVL 4

Expert Comment

by:CarlvanEijk
ID: 33435124
your bad ;)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now