dcmtk echoscu failing to establish a connection.

Hello all,

I am trying to launch an echoscu command from a linux os to make a ping request to a windows os using the dcmtk tool and no association is being made on the specified port.

command: echoscu localhost 109 -v

I: Requesting Association
F: Association Request Failed: 0006:031b Failed to establish association
F: 0006:0317 Peer aborted Association (or never connected)
F: 0006:031c TCP Initialization Error: Connection refused

How can I resolve this? Does it have something to do with windows firewall for which it prompted me to allow access and I have already allowed storescp access but it’s still failing to make a connection.

Hello,

It is impossible to answer, as you don’t provide the Orthanc logs in “–verbose” mode:
https://book.orthanc-server.com/users/support.html#discussing-a-minimal-working-example

If the firewall is the culprit, you should see no incoming connection to your Orthanc server in its logs. Also, note that by default, Orthanc uses the 4242 TCP port for DICOM connections (not 109), make sure that the Orthanc configuration file is properly adapted.

Sébastien-