Change XNAT port after installation

85 views
Skip to first unread message

Bioengineering Neuromed

unread,
Sep 28, 2021, 6:17:09 AM9/28/21
to xnat_discussion
Dear XNAT users,
I have installed XNAT using the vagrant installation.
I would like to change the default port (8104) to another value (104), because I'm not able to communicate with the internal PACS, but I need to use this port (104).
How to do this?
I don't want to corrupt XNAT installation because we have already created the projects with the data inside.
Thank you in advance for your help.
Best regards,
Luigi Pavone

Moore, Charlie

unread,
Sep 28, 2021, 10:14:13 AM9/28/21
to xnat_di...@googlegroups.com
Hi Luigi,
  1. Click Administer > Site Administration from the top bar.
  2. Click the DICOM SCP Receivers tab.
  3. Click on the link for the SCP receiver and modify the port. Save.
Thanks,
Charlie

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Bioengineering Neuromed <bioengineer...@gmail.com>
Sent: Tuesday, September 28, 2021 5:17 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Change XNAT port after installation
 

* External Email - Caution *

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/b703ecc6-31c2-46ce-808a-fce839b3e69en%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Herrick, Rick

unread,
Sep 28, 2021, 10:14:32 AM9/28/21
to xnat_di...@googlegroups.com

You can change the port easily as an administrator. Just click Administer -> Site Administration, then select the DICOM SCP Receivers tab. You can disable the default receiver on port 8104 if you like, or you can leave it running, as it doesn’t prevent you from running another receiver. Or you can edit the default receiver to change the port to 104 in that definition.

 

You don’t have to worry about affecting your projects or your data by adding, modifying, or deleting DICOM SCP receivers. Once the receiver has received DICOM data and written it to the prearchive, its involvement in the data lifecycle is done.

 

The one thing I’d caution you on is that ports below 1024 are called well-known ports. If you’re running XNAT on any kind of *nix operating system, only superusers (i.e. root) can bind to these ports. This isn’t an issue for dedicated systems like DICOM workstations and PACS, but definitely will be a problem for Tomcat running on, e.g., Ubuntu or CentOS. The only ways I know to work around this are:

 

  • Make root the Tomcat service user, but that opens up the server to root-access exploits.
  • Use cap_net_bind_service to mark the executable as privileged to bind to well-known ports. The problem with this is that the executable in this case is java, which means anyone who can run java can bind to well-known ports, which is another security risk.

 

-- 

Rick Herrick

XNAT Architect/Developer

Computational Imaging Laboratory

Washington University School of Medicine

 

 

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Bioengineering Neuromed <bioengineer...@gmail.com>
Date: Tuesday, September 28, 2021 at 5:17 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Change XNAT port after installation

* External Email - Caution *

Dear XNAT users,

--

You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/b703ecc6-31c2-46ce-808a-fce839b3e69en%40googlegroups.com.

Bioengineering Neuromed

unread,
Sep 28, 2021, 10:21:49 AM9/28/21
to xnat_discussion
Dear Rick,
thank you so much for your reply.
I had already done the changes in DICOM SCP receivers, probably the problem is the one you explained to me.
I will try to fix it.
thank you so much.
Regards,
Luigi

Reply all
Reply to author
Forward
0 new messages