×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Windows Mobile 6.1 VPN Connection dropping

Windows Mobile 6.1 VPN Connection dropping

Windows Mobile 6.1 VPN Connection dropping

(OP)
I am having an issue maintaining a VPN connection on a CN50 using Windows Mobile 6.1. I am trying to communicate with a listener through the handheld by using a GPRS connection to connect to the VPN that the listener is on. When doing this only a few messages get to the listener, before messages stop getting through. This functionality has been tested thoroughly using wifi and works as expected.

Question:
It would help me if anyone has any advice or can tell how to: Programmatically disconnect cellular and VPN not just request it and a better way to check the connection status of VPN and cellular.

Details:
The reason I suspect the VPN is the problem is because if the listener stops receiving requests, I can manually tell the device to connect to the VPN and cellular. When I do this, the cellular displays nothing (treats it like it is already connected), but when I tell it to connect to the VPN to connect a message that says it is attempting to connect and the messages begin transferring again. In order to reconnect to the cellular and VPN programmatically I am using opennetcf. This approach works for a while, but eventually records will stop transferring or I will start receiving the message that the VPN cannot connect. At this point I can manually disconnect and re connect successfully to get a few more records.

I have not had any success with finding a way to programmatically disconnect from cellular and VPN. Everything I have found indicates the most I can do is request the operating system to disconnect them. When I attempt to request a disconnect then connect, the device is unable to connect for any length of time.

I have also not had any luck with determining the status of the cellular or VPN connections in code. The connection manager has a status, but it is unreliable. It frequently says disconnected, when everything is working fine, and says connected when it is not. I have also looked into the information available by using OpenNETCF.Net.NetworkInformation.NetworkInterface.GetAllNetoworkInterfaces. This shows the types of connections that I am attempting to use such as VPN, cellular, Ethernet. The status for cellular and VPN are always unreachable with an operational status of up.
I am programming in VB.NET, the device is set to never sleep or shutdown.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close