openvpn-monitor icon indicating copy to clipboard operation
openvpn-monitor copied to clipboard

It doesnt connects to the local open vpn server on 127.0.0.1

Open sajiljosephs opened this issue 4 years ago • 2 comments

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 avatar Sep 29 '21 10:09 sajiljosephs

This is while setting up via docker

sajiljosephs avatar Sep 29 '21 10:09 sajiljosephs

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.

brinza888 avatar May 21 '23 17:05 brinza888