473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Configuring a VPN Tunnel through vb.Net

Hello,

Is it possible to set up a VPN Tunnel (PPTP) by code (vb.Net) in a Windows Application?
The idea is to (under certain conditions) connect to a VPN without the user having to explicitly make that connection.

Invoking the connection through a shortcut isn't what I'm looking for (System.Diagnostics.Process.Start("connection.lnk" )).

Thanks for any suggestions,
Michael

I'm using vs.Net 2003 Ent. Arch.
Nov 20 '05 #1
3 12081
Hi Michael,

Thank you for using MSDN Newsgroup! My name is Peter, and I will be
assisting you on this issue.

Based on my understanding, you wants to establish the PPTP connection by
programming. I think you may try to use the RasDial API.

Here is a sample for C#. I did not make a test, you may have a try.
http://www.codeproject.com/useritems...ras#xx415375xx

You may also take a look at the link below.
http://groups.google.com/groups?hl=e...readm=%23oMcRi
5cDHA.2372%40TK2MSFTNGP09.phx.gbl&rnum=1&prev=/groups%3Fq%3DRasDial%2B%2522v
b.net%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D%2523oMcRi5c
DHA.2372%2540TK2MSFTNGP09.phx.gbl%26rnum%3D1

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #2
Thanks Peter, I'll dig it through. Looks like there's alot of usefull stuff
there.

Michael

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:UI**************@cpmsftngxa07.phx.gbl...
| Hi Michael,
|
| Thank you for using MSDN Newsgroup! My name is Peter, and I will be
| assisting you on this issue.
|
| Based on my understanding, you wants to establish the PPTP connection by
| programming. I think you may try to use the RasDial API.
|
| Here is a sample for C#. I did not make a test, you may have a try.
| http://www.codeproject.com/useritems...ras#xx415375xx
|
| You may also take a look at the link below.
|
http://groups.google.com/groups?hl=e...readm=%23oMcRi
|
5cDHA.2372%40TK2MSFTNGP09.phx.gbl&rnum=1&prev=/groups%3Fq%3DRasDial%2B%2522v
|
b.net%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D%2523oMcRi5c
| DHA.2372%2540TK2MSFTNGP09.phx.gbl%26rnum%3D1
|
| Thank you for your patience and cooperation. If you have any questions or
| concerns, please feel free to post it in the group. I am standing by to be
| of assistance.
|
| Regards,
| Peter Huang
| Microsoft Online Partner Support
| Get Secure! www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights.
|
Nov 20 '05 #3
Hi Micheal,

Thank you for your reply.

If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tarapia Tapioco | last post by:
Are there some existing PHP-HTTP-Tunnels? The problem I have: On the computer where I sit it is only possible to access Intranet. But it's also possible to install a PHP-Script there on a...
0
by: System | last post by:
Hello All, How will i setup Mysql Replication btween two redhat 7.3/9.0 boxes. I want the replication to happen through a Secure tunnel between these two. I am following the steps that is given...
0
by: Todd Calhoun | last post by:
Hi, I've got a MySQL database being hosted by a company. The site has phpMyAdmin for external administration, but I'd like to use a program like EMS MySQL manager, or maybe even an OBDC...
0
by: durumdara | last post by:
Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for "safety's snake". These files are compressed zip files with 12 character...
10
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled...
0
by: Yves Glodt | last post by:
(I asked about this several times in the twisted list but never got an answer, maybe here I'll more happy...) Hi, I'm new to conch and I wonder if somebody could point me to an example of how...
1
by: somas1 | last post by:
I've checked out quite a few web tutorials on Python and have bought a few books. I've got a lot of the basics down now but feel very limited because I've got difficulties figuring out how to do...
1
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
0
by: chazzy69 | last post by:
Basically i am just try to find out if its possible to setup a socks4/5 proxy php script on non-dedicated server hosting. It has to be able to tunnel and forward all port numbers not just 80/http,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.