Solved

How to bypass firewall in vb.net

Posted on 2008-10-20
4
913 Views
Last Modified: 2010-04-21
Hi!

Have made a application in vb.net using MYSQL
This client application need to connect to a database on
a internet database server.

My MYSQL database is using standard PORT = 3306
But some firewalls can ignore connections true this PORT

Is it possible to bypass this firewall in vb.net ?

If its possible, how do i do that ?

Thanks for help
0
Comment
Question by:team2005
4 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 22757329
No, it is not possible to bypass a firewall in VB.NET.  You need to use a port that's already configured for this purpose on the firewall, and if none is then you need to configure a port for this purpose.  Firewalls are designed so that programs can't bypass them.  
0
 
LVL 41

Accepted Solution

by:
graye earned 500 total points
ID: 22758382
I think the work "bypass" is not to be considered literally...   I suspect the question is "How to do I alter the Firewall polices to allow traffic" on a client PC.
Yes, there is a Firewall API... but it's a bit clumbsy.   I'd suggest that you write your code to "shell out" to the NetSh command-line.  The exact command-line is dependent upon the client OS (WinXP vs WinVista).
http://technet.microsoft.com/en-us/library/bb490617.aspx 
Recall, that it takes administrator privileges to alter the Firewall policies
0
 
LVL 2

Author Closing Comment

by:team2005
ID: 31507767
Thanks
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

Suggested Solutions

Title # Comments Views Activity
Error on Add method 1 38
SQL Exceptions 3 39
How to add <appSettings> to the webconfig file 2 21
Where to download and how to install sqldmo.dll 5 34
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

896 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

17 Experts available now in Live!

Get 1:1 Help Now