By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Configuring a VPN Tunnel through vb.Net

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.