# Let me know how to set MONAI Label server in MONAI Label module

**URL:** <https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [July 5, 2022, 7:02am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177 "2022-07-05T07:02:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [July 5, 2022, 7:02am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/1 "2022-07-05T07:02:01Z")

</div>

Hello. All members of 3D-Slicer

I have a question for setting of MONAI Label module in 3D-Slicer.

What should I input in ‘MONAI Label server’ option as following image? (I have no local IP address, I’m using wifi.)

 ![MONAI_setting](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/b/db36417a2dc08093ac5f6801b3859dcf3d1da2c5.png)

Please, let me know how to input accurate MONAI Label server.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [July 5, 2022, 12:15pm UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/2 "2022-07-05T12:15:39Z")

</div>

You will need to install and run MONAI Label itself on your local computer ([see here](https://github.com/Project-MONAI/MONAILabel) → Installation) or collaborate with somebody who provides a MONAI Label server and tells you the IP address that you could connect to.

To fetch the active MONAI Label models you would need to press the green button in your above image.

---

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [July 6, 2022, 12:58am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/3 "2022-07-06T00:58:08Z")

</div>

@rbumm

Thank you for answering my question.

When I input ‘[http://localhost:8000/](http://localhost:8000/)’ in input item of MONAI Label server. It occurs error as following image.

 ![MONAI_server_input](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/a/2ab8abe4bf813bd3d6a99691c4132c64e2f78344.png)

![3d-slicer MONAI_Label Error](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/a/6a6fdccb738247415ef2308cccd347007aa18142.png)

Is there the solution?

---

<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:** [July 6, 2022, 3:27am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/4 "2022-07-06T03:27:34Z")

</div>

> [@platanus](#):
>
> Is there the solution?

From your response it is not clear whether you have started MonaiLabel server or not? What happens when you type that address to a web browser?

---

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [July 6, 2022, 4:28am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/5 "2022-07-06T04:28:25Z")

</div>

@muratmaga Thank you answering my question. When I input my address([http://localhost:8000](http://localhost:8000)) in my web browser, It occurs error that couldn’t connect in web browser.

---

<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:** [July 6, 2022, 4:29am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/6 "2022-07-06T04:29:55Z")

</div>

looks like you didn’t start the monaiLabel server. Follow the [installation instructions](https://github.com/Project-MONAI/MONAILabel#installation) as @rbumm pointed out.

---

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [July 6, 2022, 8:21am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/7 "2022-07-06T08:21:36Z")

</div>

@muratmaga  
Yes. I installed MONAI Label plugin as you and others inform installation instruction.

I conducted in 3d-slicer mode as follows.

## Installing MONAILabel Plugin

Pick one of the following options to install MONAILabel Plugin for 3D Slicer

### Install 3D Slicer Preview Version with in-built Plugin

- Download and Install [3D Slicer](https://download.slicer.org/) **Preview version**
- Go to **View** → **Extension Manager** → **Active Learning** → **MONAI Label**
- Install MONAI Label plugin
- _ **Restart** _ 3D Slicer

> To update the plugin to latest version, you have to uninstall existing 3D Slicer version and download + install new preview version of 3D Slicer again.

### Install Plugin in Developer Mode

- `git clone git@github.com:Project-MONAI/MONAILabel.git`
- Open 3D Slicer: Go to **Edit** → **Application Settings** → **Modules** → **Additional Module Paths**
- Add New Module Path: _\<FULL\_PATH\>_/plugins/slicer/MONAILabel
- _ **Restart** _ 3D Slicer

### Plugin Settings

User can change some default behavior for the plugin. Go to **Edit** → **Application Settings** → **MONAI Label**

I was done installation and MONAI Label setting.

When I input sever address that is “[http://localhost:8000](http://localhost:8000)”, It occurs error as it is same error above.

And I input my address([http://localhost:8000](http://localhost:8000/)) in my web browser again, but it also occurs error.

Please, inform me regarding how to set MONAI Label server and check available port number in MONAI server.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [July 6, 2022, 12:13pm UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/8 "2022-07-06T12:13:11Z")

</div>

Dear Platanus 🙂

Please understand that it is **not enough to just install the MONAI Label extension**. You will need a server, either locally - on your computer, or remotely, on the internet.

Option 1 (local) :  
You **install** the complete MONAI Label software package and server on your local computer.  
Please refer to the MONAI Label GitHub Page [or this document](https://projectweek.na-mic.org/PW37_2022_Virtual/Projects/MONAILabelLung/MONAILabel_Installation.html) on how to do that. The computer needs to have a medium to high-end Nvidia GPU.

Then you would need to **run** the server from the command line, only then start 3D Slicer and use the MONAI Label extension by just pressing the green button mentioned above, without putting anything in the address line.

Option 2 (internet):  
You have a coworker who provides a MONAI Label server. Then start 3D Slicer, call the MONAI Label extension, enter the IP address that your coworker tells you, and only then press the green button.

---

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [July 9, 2022, 6:27am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/10 "2022-07-09T06:27:25Z")

</div>

@rbumm

Thank you for answering details.

I conducted process as you had said.

First, I finished setting of IP address in my local pc.  
Second, I conducted process regarding setting of MONAI Label sever that you linked above.

After setting IP address in my local PC and installing MONAI Label software package, I tested ‘localhost’ in web browser. But it occurs error message that is “localhost refused to connect.” in web browser. It also occurs error in 3D-Slicer as follow.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/7/77d8f044c6ed4335ebe1423cd147eeee22799255.png)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [July 9, 2022, 8:03am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/11 "2022-07-09T08:03:12Z")

</div>

In case the installation of MONAI Label outlined above succeeded, you should be able to start the MONAI Label server in a PowerShell (Windows 11) and connect from Slicer 5.1 as follows:

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a1f95ed1943416c54d6585376803bd57de420276.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a1f95ed1943416c54d6585376803bd57de420276.mp4)

The procedure is similar on Mac or Linux.

---

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [July 13, 2022, 12:32am UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/12 "2022-07-13T00:32:01Z")

</div>

@rbumm

Thank you for answering details to me.

I could solve above problem because of @rbumm @muratmaga.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/4/247fabeb24926752604c602bf184051867b662e8.png)

Thank you very much again.

---

<div class="post-metadata">

**Author:** ![linda\_varghese](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/linda_varghese/32/66243_2.png) [@linda\_varghese](https://discourse.slicer.org/u/linda_varghese)\
**Post date:** [June 16, 2023, 1:56pm UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177/13 "2023-06-16T13:56:56Z")

</div>

Hi ,  
Could you please help me with the Monai server run, as it showing some error even after I use windows Power shell.

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