ngoduykhanh / wireguard-ui

Wireguard web interface
MIT License
3.77k stars 464 forks source link

Web UI not working when changing bind-address #559

Open sudo-nitz opened 3 months ago

sudo-nitz commented 3 months ago

Hi,

I'm using Wireguard-ui (binary version) on my Raspberry Pi (with bookworm raspbian).

Next to Wireguard I have installed Pihole, which is running on Lighttpd.

I've changed default port from 5000 to 8081 with environment variable (BIND_ADDRESS).

It's working only when address is set to 0.0.0.0 - when address is different I'm not able to connect with web ui.

When address is set to 0.0.0.0 I'm not able to connect web ui from outside through reverse proxy. I think the reason is the address - it should be changed to 127.0.0.1, but in this case it's not working even in local network.

I don't know why wireguard-ui is not working with address different then 0.0.0.0.

bukiru commented 1 month ago

0.0.0.0 - means you can connect locally (on the same host) and remote (from any host in you lan, server will accept any connections from any ip range, that your server serve), but 127.0.0.1 - only locally (on the same host)