Can not connect open vpn

Posted March 18, 2018 4.7k views
ApplicationsUbuntu 16.04

Hello. I bought a VPS Ubuntu 16.04.4 from digitalocean.

Used putty for remote connection to the machine
set up open-vpn using linux commands

Downloaded open vpn client.

Use my loginid and password but it gives this result

Unable to obtain Session ID from X.X.X.242:443: XML-RPC: ConnectionRefusedError: 10061: No connection could be made because the target machine actively refused it..

Any help?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

It looks like you are trying to connect to port 443. By default, OpenVPN uses 1194 over UDP. Try configuring your client to use that instead. Make sure you are not using OpenVPN Access as it’s a different product.

Check out this tutorial for full instructions on setting up OpenVPN properly and configuring different kinds of clients:

by Justin Ellingwood
Want to access the Internet safely and securely from your smartphone or laptop when connected to an untrusted network such as the WiFi of a hotel or coffee shop? A Virtual Private Network (VPN) allows you to traverse...
  • Hi @kamaln7

    Thank you for your answer. I downloaded OpenVPN Client and didn’t change anything actually. It tries to connect 443.

    Another problem is : when setting up OpenVPN server for Ubuntu 14.04 is too easy and no need for details, but the guide you sent me has too much details.

    For example: When using ~/openvpn-ca/vars command. I don’t see anything but guide says it has these keys.

    export KEYCOUNTRY=“US”
    export KEY
    export KEYCITY=“SanFrancisco”
    export KEY
    export KEYEMAIL=“me@myhost.mydomain
    export KEY

    Is there any basic tutorial or is there an option to convert my machine from 16.04 to 14.04 ?

    • You’re right, the 16.04 tutorial does cover a lot more than the 14.04 one. If you already have the OpenVPN Server set up, you don’t need to bother with it—let’s just work on getting the client to connect.

      Can you link to the OpenVPN client that you’re using as well as the instructions you used to install OpenVPN?