Problem/Motivation
I'm reviewing this patch: https://www.drupal.org/node/2755497 but I'm not really sure this is a drupal core issue or a console issue.
The relevant comment #12 says:
FYI, when running requests using drush/drupal console there is no hostname available.
I tried with drush, and it uses 'default' as default hostname. Is drupal console using something similar?