If the request doesn't contain a Host: header, we should probably default to the server's IP address, $_SERVER['SERVER_ADDR'] instead of unknown
$_SERVER['SERVER_ADDR']
Investigate impact.
(In [6208]) fixes #3108 - fallback to SERVER_ADDR if HTTP_HOST not defined