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. .NET (Core and Framework)
  4. Connect to VPN network

Connect to VPN network

Scheduled Pinned Locked Moved .NET (Core and Framework)
sysadmin
2 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.
  • V Offline
    V Offline
    Vertyg0
    wrote on last edited by
    #1

    Hi, Is there a way to connect to VPN network (connection is already made) but I need my application to be able to connect to VPN network by user action instead of having user to go trough network connections to connect to it. And also if there is a way knowing if we are connected to VPN or not. I have saw some code doing connection by calling rasphone.exe switch but then we don`t have connection status. Thanks, Ivan.

    D 1 Reply Last reply
    0
    • V Vertyg0

      Hi, Is there a way to connect to VPN network (connection is already made) but I need my application to be able to connect to VPN network by user action instead of having user to go trough network connections to connect to it. And also if there is a way knowing if we are connected to VPN or not. I have saw some code doing connection by calling rasphone.exe switch but then we don`t have connection status. Thanks, Ivan.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Once the VPN session is esatblished, it's just like your machine was connected to the target network directly.

      Vertyg0 wrote:

      I need my application to be able to connect to VPN network by user action instead of having user to go trough network connections to connect to it.

      This is not a good idea. There are various "dailers" that will start a VPN connection, but none of them have a common API you use use. You'd have to rely on the user telling your software which VPN software they're using and which version, and supply code to interact with each VPN client you want to support.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      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