Disconnections are frustrating and can potentially compromise your privacy. Its very helpful to have a basic understanding of what causes a VPN to disconnect in order to troubleshoot the issue.
What causes disconnections?
The client software and server both send each other a cryptographically signed ping packet every 10 seconds to inform the other side that they are active/alive. If the client doesn't receive this ping packet (or any other data) from the server for longer than 120 seconds it assumes the server is no longer available and disconnects. This happens because the ping packets are being either lost or blocked on the path between your device and the server. This could be a software or hardware router filtering these packets or an unreliable Internet connection which is causing packet loss.
What can you do?
- Change the port and/or protocol you use to connect, see how to change ports and protocols.
- Try connecting to a different server, there may be an issue between your device and the server.
- If you are connecting from a location where you think your connection may be censored, try enabling obfsproxy from within the IVPN client. See how to enable obfsproxy.
- Try connecting from another device to see if the issue is with the device. We support a large range of devices, see our setup guides.
- Try another internet connection as your connection may be unreliable, especially shared wireless connections (hotel, coffees shop), cellular (3G/4G) etc.
- Advanced users may want to read about MTU and experiment with adjusting the maximum UDP packet sizes for OpenVPN (using the tun-mtu, fragment and mssfix directives). More information can be found in the OpenVPN manual.