# Slicer Jupyter Kernel only listening to localhost(127.0.0.1)

**URL:** https://discourse.slicer.org/t/slicer-jupyter-kernel-only-listening-to-localhost-127-0-0-1/30678
**Category:** Support
**Created:** [July 19, 2023, 3:51pm UTC](https://discourse.slicer.org/t/slicer-jupyter-kernel-only-listening-to-localhost-127-0-0-1/30678 "2023-07-19T15:51:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Reshma](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/reshma/32/66881_2.png) [@Reshma](https://discourse.slicer.org/u/Reshma)
#### Post date: [July 19, 2023, 3:51pm UTC](https://discourse.slicer.org/t/slicer-jupyter-kernel-only-listening-to-localhost-127-0-0-1/30678/1 "2023-07-19T15:51:21Z")

</div>

I am using fedora linux and I have a 3D Slicer v5.2.2 installed. I am using the JupyterKernel extension and everything works fine locally. When I try to access the same outside from WAN, I am not able to access the jupyter notebook. I have made necessary settings in my router(port forwarding). I figured out that when I press the “Start Jupyter Server” button, it starts the server for localhost(127.0.0.1) usage only. I want to change the visibility from “127.0.0.1” to “0.0.0.0” so that it can listen to any IP. How can I start the server in a way that it listens to custom specified IP and port numbers. Can anyone give me some directions? I plan to use Slicer for remote visualization.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [July 21, 2023, 4:38am UTC](https://discourse.slicer.org/t/slicer-jupyter-kernel-only-listening-to-localhost-127-0-0-1/30678/2 "2023-07-21T04:38:16Z")

</div>

You can configure jupyter notebook settings as usual: [generate a config file](https://jupyter-notebook.readthedocs.io/en/stable/configuring/config_overview.html) and then edit the server address (and many other authentication options). Probably there is just one thing that is not trivial - if you want to run the Jupyter server in Slicer’s Python environment then (instead of `jupyter notebook --generate-config`), you can run:

```
PythonSlicer -m jupyter notebook --generate-config

```

---

<div class="post-metadata">

### Author: ![Reshma](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/reshma/32/66881_2.png) [@Reshma](https://discourse.slicer.org/u/Reshma)
#### Post date: [July 24, 2023, 9:13am UTC](https://discourse.slicer.org/t/slicer-jupyter-kernel-only-listening-to-localhost-127-0-0-1/30678/3 "2023-07-24T09:13:01Z")

</div>

Thank you Andras! It works! Do you know if I can install SlicerJupyter in a headless server (no GUI) and still have the same remote slicer notebook work?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [July 24, 2023, 11:11am UTC](https://discourse.slicer.org/t/slicer-jupyter-kernel-only-listening-to-localhost-127-0-0-1/30678/4 "2023-07-24T11:11:40Z")

</div>

Yes you can run [xdummy](https://xpra.org/trac/wiki/Xdummy) or similar software to allow running Slicer on a headless node.
