# Failed to establish association

**URL:** <https://discourse.orthanc-server.org/t/failed-to-establish-association/3335>\
**Category:** Google Groups archive\
**Created:** [March 25, 2023, 2:29pm UTC](https://discourse.orthanc-server.org/t/failed-to-establish-association/3335 "2023-03-25T14:29:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dushko](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/a698b9/32.png) [@Dushko](https://discourse.orthanc-server.org/u/Dushko)\
**Post date:** [March 25, 2023, 2:29pm UTC](https://discourse.orthanc-server.org/t/failed-to-establish-association/3335/1 "2023-03-25T14:29:52Z")

</div>

Hello. I switched my VPN server from L2TP to OpenVPN. Now, after connecting, I get the following error when trying to download the research. What could it be? The only thing that has changed is the IP addressing. I updated the orthanc.json file to reflect the new IP addresses.

W0325 14:17:57.787523 OrthancMoveRequestHandler.cpp:289] Move-SCU request received for AET “ITPC”  
E0325 14:18:07.891766 OrthancException.h:85] Error in the network protocol: DicomUserConnection - connecting to AET “ITPC”: Failed to establish association (0006\>  
E0325 14:18:07.891918 MoveScp.cpp:237] IMoveRequestHandler Failed: Error in the network protocol

---

<div class="post-metadata">

**Author:** ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)\
**Post date:** [March 26, 2023, 10:31am UTC](https://discourse.orthanc-server.org/t/failed-to-establish-association/3335/2 "2023-03-26T10:31:03Z")

</div>

Just for a follow up.

The problem was apparently related to \*\*'\*\ ***NAT masquerading’.** Deactivating that fixed the connectivity problem.

For reference, these also useful just generally for troubleshooting: [https://book.orthanc-server.com/faq/dicom.html](https://book.orthanc-server.com/faq/dicom.html)

and these:

// Whether Orthanc checks the IP/hostname address of the remote  
// modality initiating a DICOM connection (as listed in the  
// “DicomModalities” option above). If this option is set to  
// “false”, Orthanc only checks the AET of the remote modality.  
“DicomCheckModalityHost” : false,

// Check whether the called AET corresponds to the AET of Orthanc  
// during an incoming DICOM SCU request  
“DicomCheckCalledAet” : false,

You probably don’t want to do that, but it helps for debugging. There is a long form for modality configuration also:

//“untrusted” : {  
// “AET” : “ORTHANC”,  
// “Port” : 104,  
// “Host” : “127.0.0.1”,  
// “Manufacturer” : “Generic”,  
// “AllowEcho” : false,  
// “AllowFind” : false,  
// “AllowFindWorklist” : false, // new in 1.10.0  
// “AllowGet” : false,  
// “AllowMove” : false,  
// “AllowStore” : true,  
// “AllowStorageCommitment” : false, // new in 1.6.0  
// “AllowTranscoding” : true, // new in 1.7.0  
// “UseDicomTls” : false // new in 1.9.0  
// “LocalAet” : “HELLO” // new in 1.9.0  
// “Timeout” : 60 // new in 1.9.1  
//}  
},

Stephen D. Scotti, MD

---

<div class="post-metadata">

**Author:** ![Phil\_Smith](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/p/898d66/32.png) [@Phil\_Smith](https://discourse.orthanc-server.org/u/Phil_Smith)\
**Post date:** [March 26, 2023, 10:18pm UTC](https://discourse.orthanc-server.org/t/failed-to-establish-association/3335/3 "2023-03-26T22:18:16Z")

</div>

You really should look at a Zero Trust SDP like NVIS. It works great with DICOM. check out [https://nvis.cc](https://nvis.cc) .

---

<div class="post-metadata">

**Author:** ![Dushko](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/a698b9/32.png) [@Dushko](https://discourse.orthanc-server.org/u/Dushko)\
**Post date:** [March 27, 2023, 11:25am UTC](https://discourse.orthanc-server.org/t/failed-to-establish-association/3335/4 "2023-03-27T11:25:02Z")

</div>

here is my network diagram. I am pinging the client from the server and both ways.

воскресенье, 26 марта 2023 г. в 13:31:03 UTC+3, Stephen Douglas Scotti:

![scheme.png](https://discourse.orthanc-server.org/uploads/default/original/2X/2/214dc7320018e14df8dbdd922e7665fb51e37225.png)

---

<div class="post-metadata">

**Author:** ![Dushko](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/a698b9/32.png) [@Dushko](https://discourse.orthanc-server.org/u/Dushko)\
**Post date:** [March 27, 2023, 1:14pm UTC](https://discourse.orthanc-server.org/t/failed-to-establish-association/3335/5 "2023-03-27T13:14:50Z")

</div>

I turn on the nat masquerade and it worked great. Everything is downloading.  
Now I can’t understand. If my nat works, then the request to orthanc server does not come from vpn ip 10.20.30.11, but from ip 192.168.51.253.  
In this case, in the list of dicommodalities, should I specify the ip address 192.168.51.253 of the client?

понедельник, 27 марта 2023 г. в 14:25:03 UTC+3, Anonimniy Anonim:
