Questions tagged [ras]

Remote Access Service.

Remote Access Service.
A Microsoft API that makes it possible to create applications to administer the routing and remote access service capabilities of the operating system, to function as a network router.
The RRAS server functionality follows and builds upon the Remote Access Service in Windows NT 4.0.
Developers can use RAS and RRAS to implement routing protocols.

69 questions
1
vote
0 answers

How to reset RAS Entry status in Windows CE 5?

I'm developing a Windows CE application which is a Network Connector using C#, .NET Compact Framework 3.5. Installed OS is Windows CE 5. The app is for 3G Network and VPN Connection. It makes the device on 3g network after then VPN. The problem is…
JeongjinKim
  • 182
  • 1
  • 2
  • 10
1
vote
1 answer

Scripting VPN Credentials

I can easily create a VPN connection through the PowerShell command Add-VpnConnection, however it doesn't seem able to specify any credentials (there is no option to specify username/password). As a workaround I tried to use -RememberCredential…
fededim
  • 429
  • 5
  • 12
1
vote
1 answer

How to get RAS disconnect reason?

Working on USB Modem, Used RAS interface for dial/hangup. For connection used RASDial() and for disconnection used RASHangUp() API's. After successful connection waiting for the disconnect event using function RasConnectionNotification(rasHandle,…
Kalpesh Gedia
  • 127
  • 2
  • 8
1
vote
0 answers

Internet connection failed though Dial connection was successful using Ras library on Windows 10

I am using DotRas library, creating RasDevice, Rasentry , adding Rasentry to RasPhoneBook and finally calling RasDialer.Dial(). RasDevice device = RasDevice.GetDevices().Where(o => o.Name == "(PPPOE)" && o.DeviceType ==…
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
1
vote
1 answer

Can't dial with DotRas in Windows Server 2012 R2

i'm totally new to DotRas so please be patient.. I have a windows server 2012 R2 with "Route and remote access" configured. In this simple configuration there is a dialer connection to a vpn as you can see in the first picture.. So, if i click…
Francesco Milani
  • 415
  • 4
  • 11
1
vote
1 answer

DotRas error enumerating devices - RasException (Error code 1070)

Then trying to execute the following line: ReadOnlyCollection list = RasDevice.GetDevices(); I get a very non-helpful RasException (Error code 1070). This is also thrown when executing RasDevice.GetDeviceByName(...); I have ran the…
gunwin
  • 4,578
  • 5
  • 37
  • 59
1
vote
0 answers

How to check if PDP context settings are valid and ready?

I'm heading with problem of determine if set PDP context is ready. I thought that it will be enough to check CGREG to determine the status, but it only returns GPRS registration state. Also CGACT will return 1 if context is active, and I'm just…
h__
  • 761
  • 3
  • 12
  • 41
1
vote
3 answers

Android KeyStore.getInstance("RSA") is not working

im trying to implement SSL connection on android, but i have a problem when i try to load my keystore, but i when i call KeyStore.getInstance("RSA") i got this exception. 03-26 12:19:28.660: E/AndroidRuntime(6465): Caused by:…
1
vote
1 answer

Create a broadband ppoe dialup connection within C# application

I'm a student developing an application which helps the user to check the internet connection speed on a set of dialup connections. string[,] connections = new string[5, 2] { { "username", "password" }, { "username", "password" },{ "username",…
DriverBoy
  • 3,047
  • 3
  • 19
  • 21
1
vote
2 answers

Dialing RAS from WinCE device

I am working on a bigger project, which part is to create software for Motorola MC9596 scanner, but I am stuck with datatransmission trough GPRS mobile connection using FTP server. For this purpose I am using OpenNETCF. The problem is that I cannot…
HoGo
  • 147
  • 2
  • 17
1
vote
1 answer

Windows Store App, VPN, RAS Api

Our windows store app allows user to manage (create or dial) VPN profiles. For this functionality we use RAS Api (create and dial VPN profile) RAS Api Wlan Api (listen to wifi networks) - will be changed to classes with…
1
vote
1 answer

code correction to make RASENUM connections to work in XP

As commented on MSDN RasEnum code I face the same problem: Possible inaccuracy in the Note section to lpcb param. Calling RasEnumConnections with lprasconn set to NULL to determine the required buffer size, it doesn't seem to work on Window ver…
2vision2
  • 4,933
  • 16
  • 83
  • 164
1
vote
0 answers

What are the exit codes used by RASPHONE.exe?

Due to a major time constraint, need to stick with invoking rasphone.exe from my c program, rather than best approach of using RAS API's. From my code, when the rasphone pop's up a dialler window to the user, if the user click's on cancel button, i…
2vision2
  • 4,933
  • 16
  • 83
  • 164
1
vote
3 answers

Monitor RAS Dial Connection from My application using APIs

I created a DialUp connection using the RASDIAL or RASPHONE exe. I want my application to monitor the established connection and if the connection gets disconnected my application should exit. How to manage this programatically? Please suggest me..
2vision2
  • 4,933
  • 16
  • 83
  • 164