Android Client: Can use with mobile 'pone data, but not wifi

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
jimford
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 4:59 pm

Android Client: Can use with mobile 'pone data, but not wifi

Post by jimford » Fri Oct 03, 2014 9:38 am

I'm using the Openvpn Android Connect client (1.1.14(build 56)) to connect to my home network via my DD-WRT router, running the server.

It works well using the mobile 'phone data connection, but doesn't connect using a wifi connection.

I would like to be able to use wifi when I'm 'out and about' to save using my mobile 'phone data allowance. Is this possible, please?

Jim

jimford
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 4:59 pm

Does OpenVPN not work with a wireless connection (wifi)?

Post by jimford » Sun Oct 05, 2014 4:22 pm

I posted this subject under a different title a few days ago, but not had any responses, so maybe this post will!

I'm using the Openvpn Android Connect client (1.1.14(build 56)) to connect to my home network via my DD-WRT router, running the server.

It works well using the mobile 'phone data connection, but doesn't connect using a wifi connection.

I would like to be able to use wifi when I'm 'out and about' to save using my mobile 'phone data allowance. Is this possible, please?

Jim

User avatar
debbie10t
Forum Team
Posts: 24
Joined: Sat Mar 03, 2012 9:42 pm

Re: Android Client: Can use with mobile 'pone data, but not

Post by debbie10t » Sun Oct 05, 2014 5:56 pm

jimford wrote:I would like to be able to use wifi when I'm 'out and about' to save using my mobile 'phone data allowance. Is this possible, please?
Generally speaking .. most people have trouble with their mobile data not their WiFi.

So .. Yes .. It is possible.

jimford
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 4:59 pm

Re: Android Client: Can use with mobile 'pone data, but not

Post by jimford » Sun Oct 05, 2014 8:13 pm

debbie10t wrote:
jimford wrote:I would like to be able to use wifi when I'm 'out and about' to save using my mobile 'phone data allowance. Is this possible, please?
Generally speaking .. most people have trouble with their mobile data not their WiFi.

So .. Yes .. It is possible.
Thanks for the reply.

So where should I look in the configuration of the server or client, to see why I can't use a WiFi connection?

Jim

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Android Client: Can use with mobile 'pone data, but not

Post by Traffic » Mon Oct 06, 2014 10:58 am

Config files .. log files .. router/firewall logs .. crystal ball ..

jimford
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 4:59 pm

Re: Android Client: Can use with mobile 'pone data, but not

Post by jimford » Tue Oct 07, 2014 2:38 pm

Traffic wrote:Config files .. log files .. router/firewall logs .. crystal ball ..
I don't think it's the router. If I turn off the firewall, I still can't connect. The router logfile (/var/log/messages) shows nothing pertinent. Also, if I do 'tail -f /var/log/messages' I see no activity while trying to connect.

The Android client shows no incoming bytes from the server. The log is typically:

EVENT:WAIT
connecting to <myserver>:1194 via UDP
EVENT:WAIT
Connecting to <myserver>:1194 via UDPv4
Server poll timeout, trying next remote entry -
EVENT:RECONNECTING
LZO_ASYM init swap=0 asym=0
EVENT:RESOLVE
Contacting <myserver>:1194 via UDP
EVENT:WAIT
Connecting to <myserver>1194
EVENT:CONNECTION_TIMEOUT
EVENT:DISCONNECTED
EVENT:CORE_THRED_INACTIVE
Tunnel bytes per CPU second:0
- OpenVPN Stop -

As I mentioned in my original post, I can connect OK using my mobile 'phone data allowance, if I turn WiFi off.

I'm stumped, so I guess it's down to the crystal ball!

Jim

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Android Client: Can use with mobile 'pone data, but not

Post by Traffic » Tue Oct 07, 2014 6:58 pm

So what does your server have to say ? :geek:

jimford
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 4:59 pm

Re: Android Client: Can use with mobile 'pone data, but not

Post by jimford » Mon Oct 13, 2014 2:58 pm

Traffic wrote:So what does your server have to say ? :geek:
The following appears to be the relevant part:

With a mobile 'phone data connection, I get:

20141013 11:34:14 82.132.230.202:36511 TLS: Initial packet from 82.132.230.202:36511 sid=a2e94d63 367b6d8d
20141013 11:34:20 82.132.230.202:36511 VERIFY OK: depth=1

82.132.230.20 is my mobile network IP address.


With an attempted WiFi connection I get:

20141013 10:35:20 192.168.1.6:59108 TLS: Initial packet from 192.168.1.6:59108 sid=a8acfcf5 2886e48b
20141013 10:35:20 N read UDPv4 [ECONNREFUSED]: Connection refused (code=146)

192.168.1.6 is the IP address provided by my dd-wrt router.

So why is the IP address 82.132.230.20 accepted, but 192.168.1.6 refused? I'm guessing it's a routing problem.

Jim

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Android Client: Can use with mobile 'pone data, but not

Post by Traffic » Mon Oct 13, 2014 6:53 pm

jimford wrote:With an attempted WiFi connection I get:

20141013 10:35:20 192.168.1.6:59108 TLS: Initial packet from 192.168.1.6:59108 sid=a8acfcf5 2886e48b
20141013 10:35:20 N read UDPv4 [ECONNREFUSED]: Connection refused (code=146)
This suggests you are connecting on WiFi in your own network to the VPN offered by your DD-WRT router ..

Maybe the router is configured to refuse internal connections as the client is already inside your private network.

Perhaps, find some free WiFi provider, like a local Watering hole and try from there.

Sorry, I don't know for sure as I only use real OpenVPN on Linux not DD-WRT.

jimford
OpenVPN User
Posts: 21
Joined: Fri Jun 07, 2013 4:59 pm

Re: Android Client: Can use with mobile 'pone data, but not

Post by jimford » Mon Oct 13, 2014 7:54 pm

Traffic wrote:
jimford wrote:With an attempted WiFi connection I get:

20141013 10:35:20 192.168.1.6:59108 TLS: Initial packet from 192.168.1.6:59108 sid=a8acfcf5 2886e48b
20141013 10:35:20 N read UDPv4 [ECONNREFUSED]: Connection refused (code=146)
This suggests you are connecting on WiFi in your own network to the VPN offered by your DD-WRT router ..

Maybe the router is configured to refuse internal connections as the client is already inside your private network.

Perhaps, find some free WiFi provider, like a local Watering hole and try from there.
Good point. I might take a stroll to our local library tomorrow and give it a try.

Thanks for the reply.

Jim

zerbo1000
OpenVpn Newbie
Posts: 2
Joined: Sat Oct 03, 2015 9:25 am

Re: Android Client: Can use with mobile 'pone data, but not

Post by zerbo1000 » Sat Oct 03, 2015 9:26 am

hello there,
i'm having the same problem, on my phone it works but when i use my phone as router wi fi , internet dosen't work on computer,
what can i do please??

Post Reply