openvpn-monitor
openvpn-monitor copied to clipboard
It doesnt connects to the local open vpn server on 127.0.0.1
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
This is while setting up via docker
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.