Page 1 of 1

Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified

Posted: Thu Aug 04, 2016 1:45 pm
by mrmay88
Hello,

When I try to connect to my home network VPN I am getting the following error message after the VPN client connects to the VPN server:

"Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified
ERROR: Cannot open TUN/TAP dev /dev/net/tun
Exiting due to fatal error"

Note that this occurs when the client status changes to "Connecting: Get config".

I am using OpenVPN Client version 2.15.04. Please let me know if you have any recommendations.

Re: Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified

Posted: Thu Aug 04, 2016 2:17 pm
by TinCanTech
Please post your server log @ verb 4 showing the connection attempt and your client log.

Check that your server is pushing an IP address for the client ..

Re: Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified

Posted: Thu Aug 04, 2016 2:49 pm
by mrmay88
I've modified the log slightly so as not to reveal my public IP address.

"OpenVPN Client google release 2.15.04 (1021504)
OpenVPN 2.3.11 android-armeabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jul 8 2016
library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.09
WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
UDPv4 link local (bound): [undef]
UDPv4 link remote: [AF_INET]XXX.XXX.XXX.XXX:XXXXX [netgear]
Peer Connection Initiated with [AF_INET]XXX.XXX.XXX.XXX:XXXXX
Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified
ERROR: Cannot open TUN/TAP dev /dev/net/tun
Exiting due to fatal error"

Re: Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified

Posted: Thu Aug 04, 2016 2:52 pm
by mrmay88
That was the client log.

Here is the server log on a fresh attempt I just did that yielded the same error message as the original post:
[OpenVPN, connection successfully] from remote IP address: XXX.XXX.XXX.XXX, Thursday, August 04, 2016 06:51:16

Re: Tun device open exception: java.lang.IllegalArgumentException: At least one address must be specified

Posted: Wed Sep 21, 2016 1:21 am
by mrmay88
I finally figured this out. I found a blog where someone noted that this model router (Netgear Nighthawk AC1900) does not support TUN. I found the "Use TAP device" option in the paid version of the Open VPN client and it connected successfully with no exception and maintained the connection.