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