VPN connection

  • Thread starter Thread starter Johann
  • Start date Start date
J

Johann

Hi,

I would like to know how would i programmatically make a vpn connection to a
gprs network.

Johann
 
On what sort of device? We need as much information as you can give to
generate a valuable answer...

You might look at the ConnectionManager wrapper class in OpenNETCF's SDF at
www.opennetcf.org, if we're talking Pocket PC.

Paul T.
 
It's for PocketPC, where I need to connect to a corporate network, using a
vpn connection. I want to know how do I connect programmatically given the
username and password, don't see anyway I could make a connection like the
one I require by using the OpenNETCF Connnection Manager .
Thx,

Johann
 
Simplist way:

Create the VPN connecton via the built-in Connection Manager system.
In your program, try to access something requires a web connection - in my
case a web service.
Hope the Microsoft OS works out that the VPN GPRS system is the required one
and auto starts it.

Problems:
Because the connection is started by the OS, you don't have control to stop
it.
If the unit is multi-radio (ie WiFi and GPRS) and you are within range of a
valid configured WiFi network, it will try to use the WiFi connection
instead.

If this doesn't do what you want, then you may well have to get down to use
the RASxxx series of commands - the OpenNet code probably wraps these once
you dig down far enough (not familiar with the internals of OpenNetCFs
ConnectionManager class)
 
Back
Top