How to automatically connect through VPN

A

Anders Kallin

Hello everyone!

One of my clients wants to use VPN-connections on their handhelds. We
have tried this and it seems to work fine except for one thing: When
using our application, that is written using .NET CF, the VPN does not
automatically connect, but if we use Internet Explorer, Terminal
Services Client or any other networking application, the VPN-connection
is automatically connected. This means that whenever the handheld is
suspended the user has to connect the VPN-connection manually in order
for our application to find the server. How can I make our application
connect automatically?

Regards,
Anders
 
A

Anders Kallin

Is there nobody out there who uses VPN-connected devices together with
your own socket-connected .NET CF-programs?

/Anders
 
Joined
Feb 15, 2006
Messages
1
Reaction score
0
These lines makes it for me .... but it is not the nice way doing it ... i am looking for a other solution but could not find it on the net, perhaps someone here can help ? Going thru the Connection Manager API could be a way, but i didn't try it for now ..
.

---
Dim myHttpWebRequest1 As Net.HttpWebRequest = CType(System.Net.WebRequest.Create("http://vpn"), System.Net.HttpWebRequest)
myHttpWebRequest1.Method = "HEAD"
Dim myHttpWebResponse As Net.HttpWebResponse = CType(myHttpWebRequest1.GetResponse(), Net.HttpWebResponse)
myHttpWebResponse.Close()
---
 

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

Top