At present I'm using req.headers.host to determine the server's host name, which is effective when processing a request received at the server.
But how can one determine the host name in the absence of a request (i.e. without req)? I'm thinking, in particular, when the node server is first created and run, and before any requests are received.
I'm using the express module.
Thanks