# Should Slicer DICOM storage listener respond to C-ECHO?

**URL:** <https://discourse.slicer.org/t/should-slicer-dicom-storage-listener-respond-to-c-echo/35111>\
**Category:** Support\
**Tags:** dicom\
**Created:** [March 27, 2024, 12:08am UTC](https://discourse.slicer.org/t/should-slicer-dicom-storage-listener-respond-to-c-echo/35111 "2024-03-27T00:08:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 27, 2024, 3:08pm UTC](https://discourse.slicer.org/t/should-slicer-dicom-storage-listener-respond-to-c-echo/35111/2 "2024-03-27T15:08:36Z")

</div>

The traditional storage provider (listener) in the Slicer release is implemented using [dcmtk’s storescp](https://support.dcmtk.org/docs/storescp.html) and yes, it responds to echo for me:

```auto
$ echoscu -v localhost 11112
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending Echo Request (MsgID 1)
I: Received Echo Response (Success)
I: Releasing Association

```

If you use `ps` on linux I can see the listener running with these arguments. You can just run the same or similar commands outside of Slicer for debugging.

```auto
.../Slicer-5.5.0-2023-11-15-linux-amd64/bin/../bin/storescp 11112 --accept-all --output-directory /mnt/timc-batch2/data/db2/incoming --exec-sync --exec-on-reception /mnt/timc-batch2/Slicer-5.5.0-2023-11-15-linux-amd64/bin/../bin/dcmdump --load-short --print-short --print-filename --search PatientName "/mnt/timc-batch2/data/db2/incoming/#f"

```

You could try [echoscu](https://support.dcmtk.org/docs/echoscu.html) like this from localhost or from a different machine to see if the ports are working.

If pynetdicom had existed when Slicer’s dicom networking was implemented we might have used that, but it’s also kind of nice that these kind of connection issues can be debugged independently with just the command line tools, and also using the separate process makes it event driven (networking doesn’t block the UI). I see that pynetdicom also provides a way to run it’s [storescp as a command](https://pydicom.github.io/pynetdicom/stable/apps/storescp.html) line tool so that might help for testing. It should also be possible to install pynetdicom directly in Slicer’s python.

Things may be different too with the new [dicom browser](https://discourse.slicer.org/t/new-feature-visual-dicom-browser/33874) that’s available in the Preview version of Slicer.

Good luck - debugging these dimse connections can be a pain so ask follow-ups as needed and report back what you find so it will help others in the future.

---

_[View the full topic](https://discourse.slicer.org/t/should-slicer-dicom-storage-listener-respond-to-c-echo/35111)._
