# While running segment app in slicer, showing wrong url

**URL:** <https://discourse.slicer.org/t/while-running-segment-app-in-slicer-showing-wrong-url/34703>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [March 4, 2024, 7:14pm UTC](https://discourse.slicer.org/t/while-running-segment-app-in-slicer-showing-wrong-url/34703 "2024-03-04T19:14:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajay\_Kumar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ajay_kumar/32/69562_2.png) [@Ajay\_Kumar](https://discourse.slicer.org/u/Ajay_Kumar)\
**Post date:** [March 4, 2024, 7:14pm UTC](https://discourse.slicer.org/t/while-running-segment-app-in-slicer-showing-wrong-url/34703/1 "2024-03-04T19:14:24Z")

</div>

--------After downloading this below dataset  
monailabel datasets --download --name Task07\_Pancreas --output .

------and after runnig below the command to run the app  
monailabel start\_server --app apps/radiology --studies C:\monai-projects\lung-images --conf models segmentation

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/9/f989fb5f63000c3d6016e1f204484671c1a932ac.png)

-------its successfully on my local server on [http://0.0.0.0:8000](http://0.0.0.0:8000)

But after opening 3d Slicer and select module to MonaiLabel to check the output, Im getting error image below.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/3/0379a7ba0c314008b8a50dc22ee14533118f0357.png)

Traceback (most recent call last):  
File “C:/monai-projects/VISTA/monailabel/plugins/slicer/MONAILabel/MONAILabel.py”, line 1204, in fetchInfo  
info = self.logic.info()  
File “C:/monai-projects/VISTA/monailabel/plugins/slicer/MONAILabel/MONAILabel.py”, line 2586, in info  
return self.\_client().info()  
File “C:/monai-projects/VISTA/monailabel/plugins/slicer/MONAILabel/MONAILabel.py”, line 2562, in \_client  
if mc.auth\_enabled():  
File “C:\Softwares\Slicer 5.6.1\slicer.org\Extensions-32438\MONAILabel\lib\Slicer-5.6\qt-scripted-modules\MONAILabelLib\client.py”, line 83, in auth\_enabled  
status, response, \_, \_ = MONAILabelUtils.http\_method(“GET”, self.\_server\_url, selector)  
File “C:\Softwares\Slicer 5.6.1\slicer.org\Extensions-32438\MONAILabel\lib\Slicer-5.6\qt-scripted-modules\MONAILabelLib\client.py”, line 521, in http\_method  
conn.request(method, selector, body=body, headers=headers)  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\http\client.py”, line 1285, in request  
self.\_send\_request(method, url, body, headers, encode\_chunked)  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\http\client.py”, line 1331, in \_send\_request  
self.endheaders(body, encode\_chunked=encode\_chunked)  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\http\client.py”, line 1280, in endheaders  
self.\_send\_output(message\_body, encode\_chunked=encode\_chunked)  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\http\client.py”, line 1040, in \_send\_output  
self.send(msg)  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\http\client.py”, line 980, in send  
self.connect()  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\http\client.py”, line 946, in connect  
self.sock = self.\_create\_connection(  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\socket.py”, line 844, in create\_connection  
raise err  
File “C:\Softwares\Slicer 5.6.1\lib\Python\Lib\socket.py”, line 832, in create\_connection  
sock.connect(sa)  
OSError: [WinError 10049] The requested address is not valid in its context

Please help me out.

Thanks  
Ajay

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 4, 2024, 7:18pm UTC](https://discourse.slicer.org/t/while-running-segment-app-in-slicer-showing-wrong-url/34703/2 "2024-03-04T19:18:46Z")

</div>

> [@Ajay\_Kumar](#):
>
> -------its successfully on my local server on [http://0.0.0.0:8000](http://0.0.0.0:8000)

0.0.0.0 doesn’t seem like a valid IP address. There might something wrong with your network settings. If the monai label is running on the same computer as the Slicer, try server address [http://127.0.0.1:8000](http://127.0.0.1:8000)
