Allow 0.0.0.0 as bind address for Webserver

#1

I am connecting to BBT from my phone. My IP address of Mac is dynamically assigned by a DHCP server, so the IP address will change every a while. I try to set the bind address to 0.0.0.0 to bind the webserver to all interfaces, to avoid changing the address every time. But when it is set, other clients connecting to it simply got connection refused.

I suppose it is because the Webserver is validating the 'host' header, refusing unmatched host. So when other clients connect to BBT with an actual address, e.g. 192.168.1.10, the host header is also '192.168.1.10', which is unmatched with '0.0.0.0'.

0 Likes