Skip to content
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

It doesnt connects to the local open vpn server on 127.0.0.1 #224

Open
sajiljosephs opened this issue Sep 29, 2021 · 2 comments
Open

It doesnt connects to the local open vpn server on 127.0.0.1 #224

sajiljosephs opened this issue Sep 29, 2021 · 2 comments

Comments

@sajiljosephs
Copy link

WARNING: socket error: [Errno 99] Cannot assign requested address
Could not connect to localhost:5555 (Cannot assign requested address)

But when installed via source, it automatically connects to the openvpn server

@sajiljosephs
Copy link
Author

This is while setting up via docker

@brinza888
Copy link

If you are setting up this tool using Docker, you need to work with container networking, because containers are isolated and localhost inside container is container's localhost, not host machine.

The simplest way to avoid this, is to run docker in "host" network mode (see --network host in Docker docs).

Another way is to use --add-host=host.docker.internal:host-gateway parameter to provide special hostname "host.docker.internal" inside the container, that will be routed to your host machine. In this case don't forget to add allow rule in firewall and make OpenVPN Management interface listen on Docker network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants