Opened 6 years ago

Last modified 7 weeks ago

#313 assigned Bug / Defect

Android: OpenVPN Connect does not detect network change 3G -> WiFi

Reported by: Gert van Dijk Owned by: yuiriy
Priority: major Milestone:
Component: OpenVPN Connect Version:
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: android
Cc:

Description

Steps to reproduce:

  1. Connect Android to mobile data network (disable WiFi?).
  2. Establish OpenVPN connection normally.
  3. Activate WiFi? and connect it to your WiFi? network. Do not touch the mobile network settings.
  4. Note that OpenVPN does not detect this change. Connection to server is lost and log shows lines like (repeatedly):
    UDP send error: send: Invalid argument
    
  5. OpenVPN does not detect this fault until the keepalive timeout is reached.

If I disconnect to mobile network first, then activate WiFi?, it does detect the network change perfectly fine. Also the other way around (from WiFi? to 3G) seems to work fine.

Environment:

  • OpenVPN Connect 1.1.12 (build 45), latest from Google Play.
  • Android 4.2.2 (Paranoid Android 3.69)
  • OpenVPN server running on UDP port 1149.

Change History (7)

comment:1 Changed 5 years ago by JoshC

Component: Generic / unclassifiedOpenVPN Connect

comment:2 Changed 5 years ago by Samuli Seppänen

Owner: set to jamesyonan
Status: newassigned

comment:3 Changed 13 months ago by Antonio

Owner: changed from jamesyonan to Antonio

Is this still a problem with the latest release of Connect for Android?

comment:4 Changed 13 months ago by Antonio

Summary: OpenVPN Connect (Android) does not detect network change 3G -> WiFiAndroid: OpenVPN Connect does not detect network change 3G -> WiFi

comment:5 Changed 11 months ago by analogue

Yes, this problem still exists on OpenVPN Connect 3.0.3.

comment:6 Changed 11 months ago by Antonio

Owner: changed from Antonio to yuiriy

comment:7 Changed 7 weeks ago by stepkas

Hello,

Same repro steps, same behavior, the only difference is error message:
12:31:18.437 -- UDP send error: send: Network is unreachable

Tried setting OpenVPN Protocol to TCP: no luck. Playing with Connection Timeout setting also gives nothing.

Confirming that WiFi? -> LTE network change is processed fine.

Any chance to have it fixed? It's extremely annoying :(

Note: See TracTickets for help on using tickets.