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:123, UDP:443, UDP:1194, UDP:2049, UDP:2050, TCP:80, TCP:443, TCP:1194, TCP:1443, TCP:2049, TCP:2050, TCP:30587, TCP:41893, TCP:48574, TCP:58237, and any UDP or TCP port within the 5500-19999, 30000-65000 range.
- WireGuard: UDP:53, UDP:80, UDP:123, UDP:443, UDP:500, UDP:1194, UDP:2049, UDP:2050, UDP:4500, UDP:30587, UDP:41893, UDP:48574, UDP:58237, and any UDP port within the 5500-19999, 30000-65000 range.
For Windows, macOS, Linux, iOS, and Android:
- Open the IVPN client.
- Click on the “Gear” icon at the top right to access
Settings
. - Go to the
Connection
tab (VPN protocol
on mobile clients). - Select a different Port/Protocol combination.
- Retry the connection and repeat steps 1-4 as necessary.
Using CLI:
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 config files:
OpenVPN
- Open the .ovpn config file with any text editor and locate line 3
proto udp
and line 4remote xx.gw.ivpn.net 2049
. - Change those values to, e.g.
proto tcp
andremote xx.gw.ivpn.net 443
(see all available port combinations above). - Save the changes, (if required) 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.
WireGuard
- Open the WireGuard config file with any text editor.
- Change the port number in the
Endpoint
field, e.g.ua1.wg.ivpn.net:443
(see all available port combinations above). - Save the changes, (if required) create a new VPN profile in your WireGuard client, and reconnect.
- In case the issue persists, go back to step 1 and try a different port.
Related Articles
- I receive an 'authentication failure' message. What can I do?
- How to resolve error "IVPN.app is damaged and cannot be opened."
- OpenWrt - TunnelVision Mitigation (CVE-2024-3661)
- How do I verify the location of a server?
- I cannot connect to the VPN. 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