Help Center
How do I change the port or protocol used to connect?
Changing the port/protocol you use to connect to the VPN can increase your performance in some cases or unblock the connection if a certain port/protocol combination is blocked. You may need to try multiple combinations to find the ideal setup for your connection.
Different combinations are available for different VPN protocols.
- OpenVPN: UDP:53, UDP:80, UDP:443, UDP:1194, UDP:2049, UDP:2050, TCP:443, TCP:1443, TCP:80
- WireGuard: UDP:53, UDP:80, UDP:443, UDP:1194, UDP:2049, UDP:2050, UDP:30587, UDP:41893, UDP:48574, UDP:58237
For Windows, macOS, Linux, iOS, and Android:
- Open the IVPN client.
- Click the
Settings
/Preferences
button. - Go to the
Connection
tab (VPN protocol
on mobile clients). - (macOS/Windows) Uncheck the
Automatically change port...
option. - Select a different Port/Protocol combination.
- Retry the connection and repeat steps 1-5 as necessary.
For the Linux CLI app:
Add the -port
command argument ivpn connect -port TCP:443 de.gw.ivpn.net
and try the connection again. You might have to try more than one combination to find the one best suited for your network.
For manual connection on any other platforms that you connect using our .ovpn config files:
- Open .ovpn config file you use to connect with any text editor and find line 3
proto udp
& line 4remote xx.gw.ivpn.net 2049
- Adjust those values to, e.g.
proto tcp
&remote xx.gw.ivpn.net 443
(you can also use tcp 80, tcp 1443, udp 53, udp 80, udp 443, udp 1194 or udp 2050). - Save the file, create a new VPN profile in your OpenVPN client and reconnect.
- In case the issue persists, go back to step 1 and try a different port.
Related Articles
- Tunnelblick - How to submit diagnostic data to IVPN?
- Tunnelblick - Why is the DNS server incorrect?
- "TLS key negotiation failed to occur" - How to fix
- DD-WRT - TLS errors - incoming plaintext read error etc.
- My VPN connection is randomly disconnecting. What can I do?
Still have questions?
Get in touch and we'll get back to you in a few hours.
Contact supportInterested in privacy?
Read our latest privacy news and keep up-to-date on IVPN services.
Visit IVPN Blog