C# VPN connect? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C# VPN connect?

hello community; Situation: A Vpn with name of CURRENTVPN is made through the program with windows .RAS libraries Question: how to make the CURRENTVPN connect with a username password input in C#

8th Jul 2020, 7:59 AM
Sepehr Farid
Sepehr Farid - avatar
5 Answers
+ 2
Or try to use Windows API with a wrapper like DotRas.
20th Jul 2020, 3:37 AM
Princess Jessica
Princess Jessica - avatar
+ 1
Sepehr Farid U can launch external application . It is an easiest way to do it , but it depends on the external application.
20th Jul 2020, 3:36 AM
Princess Jessica
Princess Jessica - avatar
+ 1
Sepehr Farid This could be hard. And you won't have any dependencies on particular external apps
20th Jul 2020, 3:39 AM
Princess Jessica
Princess Jessica - avatar
+ 1
Princess Jessica yea i used DotRas. for creating and disconnecting it but i dont know how to make the connecting function, is there any documents for .DotRas? i didnt find any
20th Jul 2020, 11:06 AM
Sepehr Farid
Sepehr Farid - avatar
+ 1
Okay so Sepehr Farid this will help. " Using DOTRAS-An Overview and some things 1've learnt" https://blog.mjjames.co.UK/2010/04/using-dotras-overview-and-some-things-i.html?m=1
23rd Jul 2020, 10:44 PM
Princess Jessica
Princess Jessica - avatar