I've created a VPN Connection program that is capable of sharing VPN connection through ICS (Internet Connection Sharing), for doing this I've used VirtualRouter API.
Anyways, VirtualRouter works fine with sharing OpenVPN connection, but when it comes to VPN (PPTP, L2TP etc..) it throws this exception:
The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
after showing this error, VirtualRouter is already started but it wont set Home networking connection
on my VPN network interface which I should set it manually to make it work!
Is there any way to set the Home networking connection
by code? (it doesn't matter if its PowerShell, CMD, or C#..)
User contributions licensed under CC BY-SA 3.0