VPN connection

J

Johann

Hi,

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

Johann
 
P

Paul G. Tobey [eMVP]

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.
 
J

Johann

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
 
A

Adam Goetz

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Autodialing vpn connections 1
VPN connection problem ?? 1
GPRS 2
VPN 7
VPN Client for WinCE 4.1 1
GPRS Connection Reconnect 1
how to connect to an wlan network 1
VPN server without domain controller 0

Top