No sufficent reconnecting/auto start

Got a problem with Viscosity or need help? Ask here!

afshany

Posts: 2
Joined: Sat Aug 28, 2021 9:26 pm

Post by afshany » Mon Aug 30, 2021 5:55 pm
hi there
thank you for the amazing app you have created.
i have bought the app after free trial you have offered but i face an issue here which bothers me.

the thing is my connection is a little unstable and i face network drops often, because of that the app should fastly detect this drop and autoconnect when the network is back.
on android i'm using VPN Client Pro which the fastest amongall applications i use. but on my mac, Viscosity usually can not detect this drop and for some reason it stays connected ( Green icon ) to the server for some time and then after may be 2-3 minutes it tries to connect, although i have set these setings still i face many delays in connecting.

the second issue i face is : I am using NordVPN OVPN config files, after disconnection of my network usually i try to connect manually as i described above, but the server asks me for credentials and even they are saved and unchanged i get wrong credentials error and i have to wait minutes or seconds to give it a second try. idk if this is a NORDVPN issue or Viscosity one. please investigate this, i would be really appreciated.

i will post a log as soon as these problems encountered again.
best

the image of my settings:
Code: Select all
https://ibb.co/nLVcK4c

afshany

Posts: 2
Joined: Sat Aug 28, 2021 9:26 pm

Post by afshany » Mon Aug 30, 2021 7:10 pm
this is the log
first it disconnected, then i waited to a retry, it asked credentials for a few time, then i manually disconnected and waited a few seconds and then did reconnect
Attachments
de789.nordvpn.com.udp1194 Log.txt
log of my connection
(75.44 KiB) Downloaded 73 times

James

User avatar
Posts: 2108
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Tue Aug 31, 2021 7:28 am
Hi afshany,

Thanks for posting your log.

You have a couple of options to allow OpenVPN to detect the connection drop out faster:

1. Switch to using a TCP (instead of UDP) based connection. To do this, check if your VPN Service Provider offers TCP based connection configuration files you can import (their support staff should be able to point you in the right direction). TCP dropouts are typically detected much faster (usually instantly), however TCP connections can often have slightly slower throughput. I recommend giving it a try and see how it goes.

2. OpenVPN detects dropouts of a UDP based connection using the ping/ping-restart values. By default these are quite high, meaning OpenVPN won't detect if the connection has dropped for 120 seconds (2 minutes). You can lower these values so a drop is connected much faster. To do this, edit your connection in Viscosity, go to the "Options" tab, then change the Ping value to be "10" (without the quotes) and the Ping Restart value to be "60". Click Save and try connecting again. OpenVPN should now detect a drop out within 60 seconds. You can keep fine tuning these values as needed.

Cheers,
James
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
3 posts Page 1 of 1