This change exposes the bind address (one of them if multiple) of the HTTP server. This allows us to use a real bind address in the curl example in RPC help texts.
In particular, this now reports the correct port if it was either explicitly changed through -rpcport or is from a different chain than mainnet.
This is a replacement for #15181, based on the feedback from @laanwj there.