DotRas is a framework for .Net that allow working with remote access services. It provides components to simplify the process of working with VPN entries.
Questions tagged [dotras]
19 questions
2
votes
2 answers
How to delete VPN connection (.pbk) in DotRas C#?
When my VPN client connects to my VPN server, it creates a .PBK connection, but when i trying to create another connection with another IP, it throws me
System.ArgumentException: 'ConnectionName' already exists in the phone book.
I know i can…

Ryan Cowl
- 53
- 1
- 4
2
votes
0 answers
c#: Dial a modem using dotras
im using huawei e359
Hello im creating a simple program. where my code will connect the 3g modem to the internet. because a part of my program need to access the internet.
i did some search how to do this using c#
this is my code for adding…

imadammy
- 83
- 1
- 5
1
vote
0 answers
C# Connect to mobile network using 4G Dongle APN
I'm developing a custom application that enable a user to connect to internet via a USB Mobile 4G Dongle.
The problem is I was able only to connect to 3G network by dail the number *99# using DotRas.dll library
Code Snippet, connecting using a…

kakarot
- 11
- 2
1
vote
1 answer
.NET DotRas vpn connection serverAddress resolving
I'm currently trying to create VPN connection with c# using DotRas lib. Everything looks quite easy, but I just can't understand how DotRas resolves server address while creating entry.
RasEntry.CreateVpnEntry("EntryName", "ServerAddress",…

RasMan0011
- 11
- 1
1
vote
1 answer
DotRas stop working after win10 rs4 update
Please help me to solve the following problem:
After win10 update Red Stone 4
the following code sequence stops working:
RasPhoneBook pbk = GetUserPhoneBook();
RasEntry entry = RasEntry.CreateVpnEntry(ConnectionName, server,…

turdeanu
- 45
- 6
1
vote
0 answers
DotRAS.dll not working on Windows 10 Update 1803
I have a small VB.NET program, which creates a VPN connection.
This is working until (and including) Windows 10 Update 1709.
But since the Update 1803 I always get an exception:
DotRas.RasException: An incorrect structure size was detected.
at…

Claudio Veronesi
- 21
- 2
1
vote
0 answers
DotRas to create a VPN with Windows 7
I have the below code and I want to get some VPN with some settings that I need to setup:
What I need is to
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotRas;
namespace…

Claude Torrens
- 21
- 5
1
vote
2 answers
Attempting to set L2tp Only VPN properties in C#
I am attempting to create a console app to create a VPN connection for my company. I am able to create the VPN connection but unable to set a few of the properties. I want Unencrypted password (PAP) to be true and CHAP and CHAP2 to be false. But,…

user2391933
- 53
- 6
1
vote
0 answers
DotRas 1.3 dial created Vpn entry error from application but not from Windows
I'm using dotras to create a vpn connection. When I try to connect to the vpn using the dotras dial async method it doesn't work:
"Error 718: The connection was terminated because the remote computer did not respond in a timely manner".
So I…

Rodrigo Fulanito
- 63
- 8
1
vote
2 answers
Creating a VPN connection using DotRas - making sure credentials are remembered
I am using DotRas to create a VPN connection. This is working fairly well (preshared key, credentials and such).
The only thing I am having a real difficulty with is making sure the credentials actually persist. See the following image. I cannot…

wpfwannabe
- 14,587
- 16
- 78
- 129
0
votes
1 answer
Disconnecting VPN in C# using DOTRAS
I'm making a VPN connection using DOTRAS in C# by the click of a button, using the following method.
string VpnName = "Test1";
string Destination = "191.20.0.21";
string PresharedKey = "myKey";
RasPhoneBook…

Bella Swan
- 153
- 10
0
votes
1 answer
DotRas Error "The value 'gre' is not supported for conversion."
I am using vb.net with the DotRas SDK https://archive.codeplex.com/?p=dotras
I have a problem, if I try to execute the example, I always get the error "The value 'gre' is not supported for conversion."
It must be an error with the…

Manuel
- 613
- 1
- 6
- 20
0
votes
1 answer
Use Windows login credentials on DotRas VPN connection
I'm trying to use the Windows login credentials on a DotRas VPN connection. This is what I've tried so far, without any luck:
this.rasDialer.Credentials =…

S.A.
- 99
- 8
0
votes
0 answers
Remote id in IKEv2-VPN created with DotRas
I need to submit a custom Remote id when connecting to a IKEv2-VPN created with DotRas but I haven't figured out any way of doing this.
Remote id is submitted, however it's just the IP that is submitted. I need to customize this.
This is the code…

saturnusringar
- 149
- 3
- 13
0
votes
0 answers
C# Listener (server) for TCP/IP Using Serial Connection (COM) / DotRas / PPP
I am working on an application which will run on a Windows 10 Laptop to receive data from a connected device.
As a requirement from the business, the application must use the TCP/IP via serial port (or USB/Serial) and NOT be connected using…

rowegram
- 9
- 1