Create/Connect VPN connection through C#.Net

xtremist picture xtremist · Oct 27, 2011 · Viewed 52.9k times · Source

I have a URL, a username, and a password. I want to establish a VPN connection in C# .Net WinForms.

Can you please tell me from where I can get started? Any third party API's ?

Code samples will be highly appreciated...

Answer

PiRX picture PiRX · Oct 27, 2011

You can launch external application like in this sample. This probably is easiest way to do it, but it depends on external applications.

Or you can try to use Windows API with some wrapper like DotRas. This could be a bit harder, but you won't have any dependancies on particular external apps.