Configuring a VPN Tunnel through vb.Net

  • Thread starter Thread starter Michael Maes
  • Start date Start date
M

Michael Maes

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.
 
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/rasdemo.asp?target=ras#xx415375xx

You may also take a look at the link below.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=#oMcRi
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.
 
Thanks Peter, I'll dig it through. Looks like there's alot of usefull stuff
there.

Michael

| 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/rasdemo.asp?target=ras#xx415375xx
|
| You may also take a look at the link below.
|
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=#oMcRi
|
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.
|
 
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.
 
Back
Top