Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Connect to VPN server

Connect to VPN server

Scheduled Pinned Locked Moved C#
questionhelpcsharpsysadminsecurity
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yogesh_softworld123
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • Y yogesh_softworld123

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/e8df5c7b-3188-46dd-8d5f-b553dbda8a62[^]

      Y 1 Reply Last reply
      0
      • L Lost User

        http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/e8df5c7b-3188-46dd-8d5f-b553dbda8a62[^]

        Y Offline
        Y Offline
        yogesh_softworld123
        wrote on last edited by
        #3

        i could not open the link given...

        yogesh

        L 1 Reply Last reply
        0
        • Y yogesh_softworld123

          i could not open the link given...

          yogesh

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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");

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups