Solved

How to bypass firewall in vb.net

Posted on 2008-10-20
4
908 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need help with a query 6 53
Why don't I see this table in EDMX file? 2 19
Problem to page 4 16
Format column on datatable 7 14
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

772 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