Why Orthanc DICOM connections fail and how to find the cause
A modality or PACS that cannot reach Orthanc, or a study that never shows up after a C-STORE or C-MOVE, usually comes down to a short list of mismatches: the Application Entity Title (AET), the IP address, the port, and whether each side has registered the other. Most failed associations trace back to one of these, and they are easy to check once you know which side of the connection holds each setting. Work through them in that order rather than changing several settings at once, because a single edit can mask the original fault and leave you with a second, harder one.
Two tools separate network faults from configuration faults. A C-ECHO sent from each side tests whether the association can be opened and the peer answers at all, so a timeout or refused connection points toward routing, firewalls or the wrong port, while an immediate rejection usually points toward an unknown or misspelled AET. The Orthanc log then tells you which check failed. Raising the log level to verbose before you retest gives you the calling AET, the address Orthanc saw and the rejection reason, which is the evidence you need before you touch a firewall rule or a peer's configuration. Confirm the exact log options for your Orthanc version in the Orthanc Book before you rely on them in production.
This page works through those causes in sequence: identity and registration first, then addressing and ports, then firewalls and network paths, and finally C-MOVE destination handling, which fails in its own way. The DicomModalities entries themselves, including how to define a remote modality and when to use C-FIND, C-MOVE or C-GET, are covered in the sibling topic on DICOM query/retrieve with Orthanc, so this page assumes those entries exist and focuses on finding why they do not work.
Work through the triage sequence before changing settings
The sequence separates network problems from DICOM configuration problems, so you change one thing at a time. It ends with a known rejection reason and a matching AET, IP and port on both sides.
Confirm the network path first
Before touching Orthanc, check that the remote host is reachable on the exact IP address and port the peer uses. Run a basic connectivity test from the Orthanc host to the modality or PACS, and from that host back to Orthanc, using the network tools your team already trusts. Also confirm that no firewall, security group or routing rule blocks the port in either direction. A pass means packets reach the far side; a fail points to infrastructure rather than DICOM settings, so involve the network team before going further. Confirm the port numbers against your Orthanc version and your remote system's documentation rather than relying on defaults.
Run C-ECHO from Orthanc to the remote node
Use Orthanc's C-ECHO test for the entry defined in its modality list, which exercises the DICOM association handshake without moving any images. A successful echo shows that the association is accepted, that both AET values are recognized and that the protocol negotiation works. A failure with a clean network path usually means an AET, IP or port mismatch, or a rejection by the remote node. Record the exact response so you can compare it with the log in the next step. Check the REST API route for echo in the documentation of your Orthanc version, since the exact call may differ between releases.
Run C-ECHO from the remote node to Orthanc
Ask the modality or PACS administrator to send a C-ECHO to Orthanc using the AET and port that Orthanc expects. This tests the reverse direction, which is often where a missing entry in Orthanc's list of allowed DICOM peers appears. A pass confirms that Orthanc accepts associations from that remote AET and address. A fail means the remote system is using a different calling AET, a different IP as seen by Orthanc (for example, after NAT), or an address that Orthanc does not recognize. Both directions must pass before you move on to query or transfer tests.
Read the verbose log for the rejection reason
Enable verbose logging on Orthanc for the duration of the test, then repeat the failing C-ECHO or C-STORE. Find the entries that correspond to the attempt by timestamp and read the reason for the rejection or abort. The log names the calling and called AETs and the remote address, which lets you compare them with your configuration. Turn verbose logging off afterward, since it produces large output. Confirm the log message wording and the setting names against your Orthanc version, because exact strings change between releases. A clear rejection reason tells you which of the next checks matters.
Check AET, IP and port on the Orthanc side
Compare the entry for the remote node in Orthanc's DICOM modalities configuration with the values the remote system actually sends and listens on. Check the AET as an exact, case-sensitive match, the IP address Orthanc sees for the peer, and the port on which the remote node listens. Also confirm the AET and port Orthanc uses to identify itself, since the remote system must have the same values configured. A mismatch on any one field can cause an association rejection even when the network path is open. Make one change at a time and repeat the C-ECHO test after each change.
Check AET, IP and port on the remote side
Ask the administrator of the modality or PACS to confirm the Orthanc AET, IP and port in their own configuration, and to confirm that Orthanc's calling AET is registered as an allowed peer there. Many scanners and archives reject unknown AETs silently, so the remote side may not show an error that Orthanc can see. Confirm that the remote system is listening on the port you expect and that it is not restricted to a different network interface. A pass is a successful C-ECHO from both directions after the matching changes. If the remote side cannot be changed, document the exact values it requires and agree on them with the owner before rerunning the tests.
Retest the full path and record the result
Once both C-ECHO tests pass, run the workflow that originally failed, such as a query, a retrieve or a store, and confirm that the study appears where expected. Record the final AET, IP and port values on both sides, the firewall rules that applied and the log messages from the failing attempt. This record lets the next person reproduce the working setup and avoids repeating the same checks after a restart or upgrade. If the query passes but a retrieve still fails, the problem is likely in the move or destination settings, which is covered in the query and retrieve guidance for Orthanc.
Common causes: AET, IP, port and unknown modality rejections
Most failed DICOM associations with Orthanc trace back to a small set of identity and address mismatches rather than to Orthanc itself. Each side of a connection must know the other's AET, network address and port, and each must accept the other as a known peer. The cards below describe the symptom and the check for each cause, so you can rule them out in a sensible order.
AET mismatch in case and spacing
The AE title must match exactly, including upper and lower case and any padding spaces, on both ends of the association. A title that differs only by case or a trailing space is still a different title, and the peer will reject the association without naming the mismatch. Compare the value in Orthanc's configuration with the value configured on the remote device, character by character, and confirm the peer's own AET setting rather than its display name or hostname.
Orthanc security FAQWrong IP address or NAT translation
Orthanc identifies a remote modality by its IP address, and a peer identifies Orthanc the same way. When traffic passes through NAT, a firewall or a load balancer, the address the peer sees can differ from the address you configured, so the peer may refuse the connection even though the AET and port are correct. Check the source address seen in the Orthanc logs at the moment of the attempt and compare it with the address stored in the peer's allow list.
Port mismatch between the two ends
The DICOM port on the remote device must match the port in Orthanc's modality entry, and the port Orthanc listens on must match what the peer targets. A mismatch often shows up as a connection that never opens, which looks similar to a firewall block. Confirm the listening port in the Orthanc configuration on the host, then test that port from the remote side before changing any AET or address settings.
Peer not registering Orthanc's AET
A remote PACS or modality often keeps its own list of permitted callers, and Orthanc's AET must be added there with the correct address and port before the peer accepts it. Even when the network path is open, the peer will reject an association from an unknown caller. Ask the peer's administrator to confirm that Orthanc appears in its node list with the same AET, the Orthanc host address and the Orthanc DICOM port, and to check whether any change needs a service restart.
Orthanc not registering the remote modality
For Orthanc to send to a device, or to run C-FIND and C-MOVE against it, the device must exist in the DicomModalities section with its AET, address and port. A device that works from the modality side can still fail when Orthanc has no entry for it, or when the entry holds an old address. Check the configured entry, restart Orthanc after editing it if your deployment requires that, and then run a C-ECHO from Orthanc to confirm the entry is usable.
C-MOVE destination unknown to Orthanc
When a workstation asks Orthanc to C-MOVE studies to its own AET, Orthanc must already know that destination as a DICOM modality with a reachable address and port. If the destination is missing, Orthanc cannot open the return association, and the requester often sees a failure that does not name the cause. Confirm that the workstation's AET, address and port appear in Orthanc's modality list, and that the workstation can accept an incoming association on the port you configured.
Diagnostic tools and when each one fits
This table compares five ways to test a failing Orthanc DICOM connection: verbose logs, C-ECHO from Orthanc, C-ECHO from the remote system, packet capture and REST-level checks. Read each row for what the tool shows, what it leaves unproven and when it is the right first step. The main takeaway is that no single tool proves a connection works end to end, so pair an application-level test with a network-level one.
| Tool | What it proves | What it cannot prove | When to use it |
|---|---|---|---|
| Verbose Orthanc logs | Which AET, IP address and port Orthanc received or attempted, and whether it rejected the association or the modality is not in DicomModalities | Whether the remote system's own configuration is correct or whether a firewall dropped packets before Orthanc saw them | First step on any failed association, after confirming the logging level is raised in the configuration and the log file is being read |
| C-ECHO from Orthanc to the remote system | That Orthanc can open a DICOM association to the remote AET, IP and port and receive a response using the configured settings | That the remote system accepts images from Orthanc for storage or retrieval, or that its C-MOVE destination entry points back to Orthanc | Checking outbound settings in DicomModalities, including C-MOVE or C-STORE targets Orthanc pushes to |
| C-ECHO from the remote system to Orthanc | That the remote system can reach Orthanc's DICOM port and that Orthanc accepts its calling AET | That Orthanc can reach back to the remote system for C-MOVE or C-GET responses | Checking inbound access when a modality or PACS cannot send studies or query Orthanc |
| Packet capture on the server | Whether TCP connections arrive, which side closes them and where a firewall or NAT rule drops or resets traffic | Why a DICOM request was rejected at the application layer, since the payload may be encrypted when DICOM TLS is in use | When logs show nothing and C-ECHO times out, to separate network blocking from application rejection |
| REST-level checks | That Orthanc has the study, that its DICOM configuration is loaded and that the modality entry exists through the API on the local host | That the network path is open or that the remote system is configured correctly on its side | When you need to confirm whether a study is stored in Orthanc or to test a configured modality from the API |
| Independent test tools such as DCMTK or dcm4che | That a second, independent DICOM implementation can complete a C-ECHO or C-FIND with the same parameters | That your production system behaves the same way, since test tools may ignore some settings | When you want to rule out Orthanc configuration as the cause, which is common with C-ECHO testing. Tool choice depends on your team's environment and skills |
How C-MOVE destination errors differ from association errors
A C-MOVE failure is not the same problem as a failed association, and the difference changes where you look first. When a workstation asks Orthanc to send a study with C-MOVE, the requester only opens one association, to Orthanc. Orthanc then opens a second association of its own to the destination AET, and that destination must be known to Orthanc and reachable from Orthanc's network position, not only from the requester. A C-FIND that succeeds proves the first leg works and says nothing about the second. This is why a study can appear in query results and still fail to move: the search succeeded, but Orthanc could not reach or recognize the destination it was asked to send to.
Start by confirming the destination entry on the Orthanc side. The entry lives in the DicomModalities configuration (or the equivalent REST-managed entry), and the AET, IP address and port must describe the workstation or PACS as Orthanc sees it, which may differ from its address on the requester's side when NAT or a load balancer sits in between. Use the REST API to read the stored entry and then run C-ECHO from Orthanc to that entry. If C-ECHO fails, the problem is the destination's address, port, AET or firewall path, not the move itself. If C-ECHO succeeds but the move still fails, check whether the destination's own AET is what the C-MOVE names as its move destination.
Keep the two legs separate in your logs and your test plan. Verbose logs on Orthanc show the inbound C-MOVE request and then the outbound association attempt, so the error text tells you which side refused. The detailed steps for defining DicomModalities entries, choosing between synchronous and asynchronous C-MOVE and handling C-GET are covered in the sibling topic on DICOM query/retrieve configuration with Orthanc. Before you open that topic, confirm with your network team that the destination can accept connections from Orthanc's address on the port you configured, because a firewall that allows the requester but blocks Orthanc will reproduce exactly this symptom.
Where the failure sits in Docker, Linux and hospital networks
In a container deployment, Orthanc listens on a port inside its container network namespace, and the modality only sees what the host publishes. A DICOM association can fail even when the Orthanc process is healthy, because the port it expects was never mapped or the mapping points somewhere else. Docker also rewrites source addresses in some network modes, so the IP that Orthanc sees may not be the modality's real address. Confirm this in your own deployment, since the behavior depends on the network driver and host settings.
- Published ports: Check that the DICOM port inside the container is published on the host interface the modality can reach, and that the host port matches what the modality is configured to call.
- Source address: Ask whether Orthanc sees the modality's real IP or a bridge gateway address, because that affects any IP-based allow rules.
- Container logs: Collect the Orthanc log from the container, not the host, and note the listening port reported at startup.
- Port conflicts: Verify that no other container or host service already binds the published port.
- Restart state: Confirm the container restarted with the same published ports after any compose or image change.
Before changing anything, compare the published port map with the modality entry to confirm both sides describe the same endpoint.
On a Linux host, Orthanc may be reachable from the local network but still silently refused by a host firewall. Firewalls such as nftables, iptables or firewalld often allow only the ports listed in their default zone, so a new DICOM port can be dropped without any error on the Orthanc side. The symptom is usually a timeout on the modality rather than a rejection, which makes the failure look like a network fault. Check the host's rules and the active zone rather than assuming the service is open.
- Rule order: Confirm which chain or zone the modality's traffic enters, and whether an earlier rule drops it before the accept rule is reached.
- Listening socket: Verify with a socket listing that Orthanc is bound to the expected address, since a bind to localhost blocks all remote traffic.
- Counters: Read packet counters on the drop rules during a failed test to see whether traffic arrives at the host at all.
- Interface and zone: Check that the interface carrying modality traffic belongs to the zone you configured.
- Persistence: Confirm that the rules survive a reboot, because runtime-only changes often disappear.
Test from the modality side with a C-ECHO after each change so you can tie a specific rule to a specific result.
In a hospital, modalities usually sit on a segmented clinical VLAN, and the path to Orthanc crosses one or more firewalls, sometimes with network address translation in between. Each boundary can apply its own allow list, and the team that owns that boundary may not be the team that runs Orthanc. Many failures are policy gaps rather than software faults, and they are easiest to resolve when you can show the exact source, destination and port that were blocked. Confirm the path with the network team before assuming the application is at fault.
- Translated addresses: Ask whether NAT changes the modality's source address on the way to Orthanc, since an allow rule written for the device's own IP will not match the translated one.
- Permitted flows: Request the firewall rule list for the modality segment and confirm the DICOM port is explicitly allowed in both directions where the protocol needs it.
- Firewall logs: Collect deny logs with timestamps from the same window as your failed C-ECHO, and match them to the source and destination.
- Path ownership: Identify which team owns each firewall, and whether changes need a change request with a lead time you should plan around.
- Reply traffic: Confirm that stateful inspection or return rules allow the response path, since a one-way rule can look like a timeout.
Keep a written record of each boundary crossed, so the network team can reproduce the test without relying on your description.
A C-MOVE opens a second association in the reverse direction
The diagram starts at a modality, which sends a C-ECHO or C-STORE to Orthanc through a firewall boundary. When Orthanc asks a PACS to send studies with C-MOVE, the PACS does not reuse that connection. It opens a new association to the move destination AET, which may be Orthanc itself, so that path needs its own allowed port and must translate correctly through NAT. Check the AET, IP address and port for each hop, and confirm that every boundary permits the traffic your configuration implies.
Association paths between a modality, Orthanc and a PACS across firewall and NAT boundaries.
Security checks while you debug DICOM connectivity
Troubleshooting a failed association tempts teams to loosen the server until something connects. The cards below cover the settings that should stay intact while you debug, and the temporary changes that tend to outlive the incident.
Scope firewall changes to one peer
When a modality cannot reach Orthanc, the quickest fix is often a broad firewall rule that opens the DICOM port to a whole subnet. Restrict any temporary rule to the modality's IP address and the specific Orthanc port, and record who opened it. Compare the source address Orthanc actually sees in its logs with the address you allowed, since NAT can change it. Remove the rule once the association succeeds.
Keep REST authentication enabled
Debugging often involves switching on remote access to the REST API so you can inspect modalities or send test requests from another machine. The Orthanc security FAQ says that when RemoteAccessAllowed is enabled, AuthenticationEnabled should be true with users defined in RegisteredUsers. Do not disable authentication to make a test pass. Confirm both keys after each change to the configuration file.
Leave script and export routes disabled
The security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled, including during a debugging session where you are tempted to test a script or export a file to a path. Check that these routes are not reachable from the network after you finish. Use a separate test instance if you need to run them.
Limit verbose logs and test tools
Verbose logging records DICOM headers, which can include patient identifiers, and test tools such as C-ECHO or C-FIND clients may be left running on shared hosts. Turn verbose logging on only for the window you need, write logs to a location with restricted access, and reset the level afterward. Remove test scripts, sample modality entries and temporary users once the issue is closed. Ask your security team how log retention applies to these files.
Use DICOM TLS for inter-site traffic
Plain DICOM traffic crossing a site boundary is readable by anyone on the path. The security FAQ notes that Orthanc supports DICOM TLS for inter-site exchanges starting with version 1.9.0. Once a connection works, consider whether it should move to TLS, and plan certificate issuance and renewal on both ends before you do. Confirm with your network team whether a VPN already covers the path.
Orthanc security FAQQuestions teams ask before fixing DICOM connectivity
How long does troubleshooting a failed Orthanc DICOM connection usually take?
There is no fixed duration, because the time depends on how many systems sit between Orthanc and the modality or PACS, and on whether anyone has access to the far end. A single AET or port mismatch on a known peer can often be found in a short session once the logs are readable. Problems that involve firewalls, NAT, a vendor-controlled modality, or several sites usually take longer because each change needs a different team to make it. Ask your team to list every hop (network path, firewall, the remote device's configuration) before estimating. Verbose logs and a clear test plan shorten the work more than any other factor.
Can our own team troubleshoot Orthanc DICOM connectivity without a partner?
Usually yes, if the team has someone comfortable reading DICOM logs and someone who controls the network or firewall rules. The core checks are the DicomModalities entries on both sides, the calling and called AE titles, IP addresses, ports, and whether C-ECHO succeeds in each direction. Gaps tend to appear where the remote modality is administered by a vendor, where firewall changes need a change board, or where nobody on the team has tested DICOM associations before. A partner is most useful when those access problems block progress, or when the same failure keeps returning after fixes.
What evidence should we collect before asking a partner to look at the problem?
Collect the Orthanc version, the operating system or Docker image, and the relevant parts of the Orthanc configuration with secrets removed. Record the exact DicomModalities entry for each peer, including AET, host, port and any TLS settings. Capture verbose log output from a failed C-ECHO, C-FIND, C-MOVE or C-STORE attempt, with timestamps and the remote device's name. Note what the remote side reports, such as an unknown modality rejection or a refused connection, and whether the failure is one-way. Add the firewall rules and network path between the two systems, and state what changed recently. Complete evidence shortens the first working session considerably.
What does a diagnostic engagement for Orthanc DICOM connectivity cover?
A diagnostic engagement typically covers reviewing the Orthanc configuration and logs, testing C-ECHO and the query/retrieve path in both directions, checking AET, IP and port alignment on each side, and identifying whether the fault sits in Orthanc, the remote device, or the network. It can also produce a written list of fixes and the verification steps to confirm them. DeployOpen plans, implements, integrates and documents self-hosted platforms in your own infrastructure, so the work is scoped to your environment and your access. Engagements are fixed-scope: scope, deliverables and timelines are agreed in writing before work starts, and the price follows from that written scope. DeployOpen does not publish a price list. Orthanc Team SRL, which sells Orthanc services separately, offers pre-paid dedicated support hours valid for 12 months, quoted on request, as described on the Orthanc Team website.
What drives the cost of fixing DICOM connectivity problems?
Cost follows effort, and effort follows the number of peers, the number of systems involved, and how much access the team has. Costs usually rise when the remote modality is controlled by a vendor, when firewall or NAT changes need approvals, when TLS is involved, or when several sites must be coordinated. One-time work includes the diagnosis and the initial fix. Recurring costs appear only if you buy ongoing support, which Orthanc Team SRL sells as pre-paid hours valid for 12 months. Ask any provider for a quote that lists each peer, each access dependency, the verification tests, and the hours or days assumed, so you can compare it with your own team's time.
When is changing the vendor or upgrading Orthanc the wrong first move?
Changing vendors or upgrading Orthanc is usually the wrong first move when the failure is an AET, IP or port mismatch, a missing DicomModalities entry, or a firewall rule. A new version or a different PACS will generally fail in the same way until the addressing and access are corrected. Start with C-ECHO in both directions, then read the verbose log at the rejection point. Upgrade only when logs point to a known defect in your installed version and the release notes describe that behavior, and check the Orthanc NEWS file for changes that affect DICOM handling. Changing software without first isolating the fault often hides evidence and creates a second problem.
Where to read the official Orthanc guidance
Before you rely on any behavior described on this page, read the official Orthanc documentation for your exact version. Connectivity behavior, default settings and DICOM handling can change between releases, so the page is a starting point for diagnosis, not a substitute for the vendor documentation. The Orthanc NEWS file records changes release by release, so search it for your installed version and for terms such as association, C-MOVE, C-STORE and TLS before you change a modality entry or a network setting in production.
Pay particular attention to the security guidance when you troubleshoot. The Orthanc Book security FAQ covers how Orthanc handles remote access, authentication and DICOM TLS, which matter when you open a new port or change how a modality reaches the server. Several shortcuts that help during a connectivity investigation, such as exposing the REST API beyond localhost or enabling script execution, carry security risks that the FAQ describes. Revert any temporary change you make for testing and record it in your change log.
Confirm the version-specific details with your own environment before you act. Check the installed Orthanc version, the DICOM settings it loaded and the behavior of the modality or PACS on the other end, since the vendor's documentation for that device is the other half of any association problem. If a release note or the Orthanc Book does not answer your question, ask the Orthanc community or a support provider for a written answer tied to your version, and keep that answer with your configuration records.
How DeployOpen scopes and delivers DICOM connectivity fixes
DeployOpen works on Orthanc DICOM connectivity problems inside the infrastructure you control, starting from the modality, PACS or peer that is failing and the configuration on both ends. The work is fixed-scope, so the findings, fixes and handover are agreed in writing before any change is made to your systems.
How we scope
- Collect the failing association details, Orthanc configuration and logs from each side before proposing a fix
- Define which modalities, peers and networks are in the written scope and which are excluded
- Agree the verification tests, such as C-ECHO and C-STORE checks, that will prove each connection works
- Record who on your team must approve firewall, certificate or AET changes before work starts
How we build
- Reproduce the failure with verbose logging enabled and document the exact rejection or timeout
- Correct AET, IP, port and DicomModalities entries on the Orthanc side and confirm the matching settings on the remote device
- Verify C-MOVE destination definitions and firewall rules with controlled C-ECHO and retrieve tests
- Test each fix against the original failing study so the result can be repeated by your team
How we hand over
- Deliver a written record of each root cause, the change made, the evidence that confirmed it and the rollback step
- Provide a reference table of configured modalities, AETs, ports and firewall rules for your change records
- Walk your engineers through the log patterns and C-ECHO checks they will use to diagnose future failures
- Document any remaining issues that sit outside the written scope, such as device-side settings you must change
How we support
- Support after handover can be arranged as a retainer covering re-testing after upgrades or network changes
- Agree the support channel, response expectations and included changes in the retainer scope in writing
- Retest affected connections after Orthanc upgrades or firewall changes that your team makes independently
- Ask for a quote that separates the initial fix from recurring support so each cost is clear

