Connect to VPN server
-
Hi, I am suffering from one problem since few weeks. Could you please try to help me? I am a C# programmer, i have client needs: He have 10 computers in office (VPN connection). one computer is server and all are clients. server computer has one folder it always updated time to time, i had to writer code to copy that folder from server computer. i made it and it works fine when i run that software in two system LAN connected. But VPN server needs user authentication. how can i connect to VPN server through C# program, this is my question. Hope nice to hear from you! Thanks!
yogesh
-
Hi, I am suffering from one problem since few weeks. Could you please try to help me? I am a C# programmer, i have client needs: He have 10 computers in office (VPN connection). one computer is server and all are clients. server computer has one folder it always updated time to time, i had to writer code to copy that folder from server computer. i made it and it works fine when i run that software in two system LAN connected. But VPN server needs user authentication. how can i connect to VPN server through C# program, this is my question. Hope nice to hear from you! Thanks!
yogesh
-
i could not open the link given...
yogesh
-
i could not open the link given...
yogesh
Snippet from the link: For all of you who are looking to do a similar feat to what I did, the command is as follows: rasdial <vpn_name> <vpn_username> <vpn_password> To disconnect: rasdial <vpn_name> /d Thus, in usable terms, my line would look like this: System.Diagnostics.Process.Start("rasdial.exe", "My_VPN My_Username My_Password"); To disconnect from the VPN, simply use this line: System.Diagnostics.Process.Start("rasdial.exe", "My_VPN /d");