From 9fa345e8f7f5ee3ec685ada079c24b07e29a827f Mon Sep 17 00:00:00 2001
From: Olivier Benz <olivier.benz@b-data.ch>
Date: Tue, 28 Jan 2025 08:37:13 +0100
Subject: [PATCH] Listen on all interfaces (IPv4 and IPv6)

- https://github.com/jupyter/docker-stacks/pull/2204
---
 base/conf/jupyter/etc/jupyter/jupyter_server_config.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/base/conf/jupyter/etc/jupyter/jupyter_server_config.py b/base/conf/jupyter/etc/jupyter/jupyter_server_config.py
index bc03f5a..6a5b9d4 100644
--- a/base/conf/jupyter/etc/jupyter/jupyter_server_config.py
+++ b/base/conf/jupyter/etc/jupyter/jupyter_server_config.py
@@ -10,7 +10,8 @@ from pathlib import Path
 from jupyter_core.paths import jupyter_data_dir
 
 c = get_config()  # noqa: F821 # type: ignore
-c.ServerApp.ip = "0.0.0.0"
+# Listen on all interfaces (IPv4 and IPv6)
+c.ServerApp.ip = ""
 #c.ServerApp.open_browser = False
 
 # https://github.com/jupyter/notebook/issues/3130
-- 
GitLab