Connect to VPN network
-
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.
-
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.
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