Share via


Send and recieve via vpn in c#

Question

Monday, March 7, 2011 6:48 AM

Hi

I have a vpn account and a program that need to send and recieve via vpn

but I dont want to make connection in windows I want to stay my account info secure and only my program can use it

How can I do?

Thanks

All replies (1)

Tuesday, March 8, 2011 9:14 AM âś…Answered

Hi Hamid19,

Welcome to the MSDN forum.

The following references provide two way to achieve the goal.

1. RAS APIs to do this

How to setup a VPN connection in code?

2.  It connected to the VPN when it's really not, and it doesn't validate the connection to a specific internal IP.

C# code to maintain VPN connection programatically

Hope it is helpful for you.

Best Regards,

Cookie Luo[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.