How do I change the port or protocol used to connect? - IVPN Help (2024)

    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:

    1. 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.
    2. 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:

    1. Open the IVPN client.
    2. Click on the “Gear” icon at the top right to access Settings.
    3. Go to the Connection tab (VPN protocol on mobile clients).
    4. Select a different Port/Protocol combination.
    5. 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


    1. Open the .ovpn config file with any text editor and locate line 3 proto udp and line 4 remote xx.gw.ivpn.net 2049.
    2. Change those values to, e.g. proto tcp and remote xx.gw.ivpn.net 443 (see all available port combinations above).
    3. Save the changes, (if required) create a new VPN profile in your OpenVPN client, and reconnect.
    4. In case the issue persists, go back to step 1 and try a different port.

    WireGuard


    1. Open the WireGuard config file with any text editor.
    2. Change the port number in the Endpoint field, e.g. ua1.wg.ivpn.net:443 (see all available port combinations above).
    3. Save the changes, (if required) create a new VPN profile in your WireGuard client, and reconnect.
    4. In case the issue persists, go back to step 1 and try a different port.

    Related Articles

    Still have questions?

    Get in touch and we'll get back to you in a few hours.

    Contact support

    Interested in privacy?

    Read our latest privacy news and keep up-to-date on IVPN services.

    Visit IVPN Blog

    Spotted a mistake or have an idea on how to improve this page?
    Suggest an edit on GitHub.

    How do I change the port or protocol used to connect? - IVPN Help (2024)

    FAQs

    How do I change the port or protocol used to connect? - IVPN Help? ›

    From the Settings page head to the VPN Protocol section, disable Automatic (recommended) and choose your preferred protocol.

    How do I change my VPN protocol? ›

    From the Settings page head to the VPN Protocol section, disable Automatic (recommended) and choose your preferred protocol.

    How to change VPN port number? ›

    You cannot change the port number for the Windows built-in VPN. The most you can do is use port-forwarding on the router. I believe that this is possible if you use OpenVPN instead of using Windows for both server and client.

    Why is my IVPN not connecting? ›

    If you are using the IVPN client, ensure that the IVPN firewall is not activated. If your connection is still not working then you will need to contact your ISP to resolve the issue. Verify that the server you are connecting to is online and available on the server status page.

    How do I change the protocol in ExpressVPN? ›

    Change the VPN protocol on a router running ExpressVPN
    1. Sign in to your router running ExpressVPN.
    2. Select VPN Options > VPN Preferences.
    3. Select your preferred protocol, then select Save.
    Feb 28, 2023

    What protocol should I use for my VPN? ›

    OpenVPN is the most secure VPN protocol and the safest choice thanks to its near-unbreakable encryption, which keeps users' data private even when using public Wi-Fi. Because it's open source, users can check the source code for vulnerabilities and reassure themselves that there are no weaknesses in its security.

    How do I change my Internet protocol address? ›

    How to change IP address on Windows computers
    1. Click the Start menu and go to Settings.
    2. Choose Network & Internet.
    3. Under your local area connection, click Properties.
    4. Under IP assignment, click Edit.
    5. Choose Manual. Toggle on IPv4 and enter the IP address, then click Save.

    What port is my VPN using? ›

    What ports does a VPN use?
    VPN protocolPort number
    PPTP (Point-To-Point Tunneling Protocol)TCP 1723
    SSTP (Secure Socket Tunneling Protocol)TCP 443
    L2TP (Layer Two Tunneling Protocol)UDP 500 UDP 4500 TCP 1701
    IPSec (Internet Protocol Security)UDP 500 UDP 4500
    3 more rows
    Jan 24, 2024

    How do I find my VPN port number? ›

    How do I find my port number on Android?
    1. Have your laptop and phone connected to the same Wi-Fi network.
    2. Open the command line/terminal on your laptop.
    3. Enter nmap –p– your. smartphones. ip. address before pressing Enter.

    What is the best port number for VPN? ›

    For OpenVPN, commonly recommended ports are UDP 1194, which is the official OpenVPN port, and TCP 443. UDP 1194 is known for speed and is the default OpenVPN setting, whereas TCP 443 is advantageous for bypassing firewalls as it's the same port used by secure HTTPS traffic.

    How do I fix VPN not connecting? ›

    How to fix a VPN that's not working
    1. Check your internet connection.
    2. Check your firewall settings.
    3. Try a different VPN protocol.
    4. Check the VPN server status.
    5. Give your VPN more time to connect.
    6. Update your VPN app.
    7. Restart your VPN app.
    8. Reinstall your VPN app.
    Nov 9, 2023

    What is preventing my VPN from connecting? ›

    Your firewall might be blocking the VPN. Your VPN software might be outdated. Your VPN settings might not be configured correctly. You might have poor internet connectivity or an intermittent network connection.

    Why does my VPN keep failing to connect? ›

    Incorrect settings, such as an improperly selected protocol or wrong server information, could hinder the connection. Reinstall the VPN client: If all else fails, uninstalling and reinstalling the VPN client can eliminate any corrupted files or settings that may be causing the problem.

    How to change protocol to UDP? ›

    Switching protocol to OpenVPN UDP or TCP - Windows
    1. Open NordVPN the app and click on the cog (gear) icon to access the app settings.
    2. Click on “Connection.”
    3. Under “VPN protocol,” select “OpenVPN (UDP)” or “OpenVPN (TCP)” from the drop-down menu.

    What is the best protocol for ExpressVPN? ›

    It's well-suited for mobile devices across all platforms. ExpressVPN recommends you to use Lightway as your VPN protocol, with OpenVPN and IKEv2 also solid choices. While L2TP/IPsec still offers encryption, there may be ways for an attacker to decrypt the VPN session.

    What is the best VPN protocol for IPTV? ›

    You should definitely be using a VPN when accessing IPTV. NordVPN offers built-in security features without extra cost, Surfshark can cover unlimited devices for the whole family, and ExpressVPN's proprietary protocol was built with speed in mind.

    How do I change from TCP to UDP? ›

    To convert a TCP server into a UDP server at least the following changes must be done:
    1. Replace SOCK_STREAM with SOCK_DGRAM ; IPPROTO_TCP with IPPROTO_UDP .
    2. Remove listen and accept calls.
    3. Replace recv with recvfrom .
    4. Replace send with sendto .
    Oct 31, 2018

    How do I switch to OpenVPN? ›

    Switching protocol to OpenVPN UDP or TCP - Android
    1. Open application Profile & Settings (bottom right corner).
    2. Tap on the gear icon in the top right corner.
    3. Select Protocol.
    4. Choose OpenVPN (TCP) or OpenVPN(UDP).

    Which is more secure, WireGuard or OpenVPN? ›

    While WireGuard is generally faster, OpenVPN provides heavier security.

    How do I change the proxy server on my VPN? ›

    Select the Start button, then select Settings > Network & Internet > VPN. Select the VPN connection, then select Advanced options. Under VPN proxy settings, select the type of proxy setup you want to use, then enter the proxy server information for that VPN connection.

    Top Articles
    Latest Posts
    Article information

    Author: Msgr. Benton Quitzon

    Last Updated:

    Views: 5848

    Rating: 4.2 / 5 (63 voted)

    Reviews: 94% of readers found this page helpful

    Author information

    Name: Msgr. Benton Quitzon

    Birthday: 2001-08-13

    Address: 96487 Kris Cliff, Teresiafurt, WI 95201

    Phone: +9418513585781

    Job: Senior Designer

    Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

    Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.