-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No connection could be made because the target machine actively refused it #26
Comments
Do you have openvpn running and exposing management interface on localhost tcp 7505? Keep in mind any firewalls you may have in place. |
Thanks for the reply |
I am getting the same problem |
Send your OpenVPN configuration and your code. |
I also can not connect. My OpenVPN configuration file is located in the current working directory, and in C:\X\OpenVPN\config. The config file is:
To connect, I'm doing
But I receive a time out error. |
@rcolpo Add another entry to your config like this: |
Thank you @HosseyNJF.
Then, I tried to connect like this:
But I got the error: I can no longer connect using the OpenVPN GUI. |
@rcolpo Are you running both the python code and the OpenVPN server on the same machine? |
<openvpn_api.vpn.VPN object at 0x7f85e86d8430> any help?? |
I ran this script
import openvpn_api.vpn v = openvpn_api.vpn.VPN('localhost', 7505) v.connect() print(" ______________ connected _______________") print(v.release) v.disconnect()
and this is the error I got
Traceback (most recent call last): File "vpn123.py", line 5, in <module> v.connect() File "C:\Users\sadaf\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openvpn_api\vpn.py", line 63, in connect raise errors.ConnectError(str(e)) from None openvpn_api.util.errors.ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it
The text was updated successfully, but these errors were encountered: