Solved

How to bypass firewall in vb.net

Posted on 2008-10-20
4
922 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

685 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