diff --git a/jupyterhub/singleuser/extension.py b/jupyterhub/singleuser/extension.py index fb286cf5..c2dadc32 100644 --- a/jupyterhub/singleuser/extension.py +++ b/jupyterhub/singleuser/extension.py @@ -518,7 +518,8 @@ class JupyterHubSingleUser(ExtensionApp): if url.hostname: cfg.ip = url.hostname else: - cfg.ip = "127.0.0.1" + # All interfaces (ipv4+ipv6) + cfg.ip = "" cfg.base_url = os.environ.get('JUPYTERHUB_SERVICE_PREFIX') or '/' diff --git a/jupyterhub/singleuser/mixins.py b/jupyterhub/singleuser/mixins.py index 3e0c3a51..4695c111 100755 --- a/jupyterhub/singleuser/mixins.py +++ b/jupyterhub/singleuser/mixins.py @@ -288,6 +288,8 @@ class SingleUserNotebookAppMixin(Configurable): url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL']) if url.hostname: return url.hostname + # All interfaces (ipv4+ipv6) + return "" return '127.0.0.1' # disable some single-user configurables