SOLVED: change dicom port

344 views
Skip to first unread message

Pela Silveira

unread,
Jul 3, 2019, 12:57:11 PM7/3/19
to dcm...@googlegroups.com
hello,

when I change dcm4chee standard dicom port from 11112 to 104 the archive stop working. I reboot server in order to start all services again, but it stay down. The iu remains ok, but there is no other service online: hl7 server etc.

When i put back port on 11112 it start working again.

Do you know what could be the problem.

thank you very much

Jon Ander Zuccaro

unread,
Jul 3, 2019, 10:50:32 PM7/3/19
to dcm4che
Please attach your entire server log.

It is possible that the 104 port  is already in use by another application or that your user lacks permissions to bind to the 104 port (ports bellow 1024 can only be opened by root).

Don't run your server as root if that's the case!, Leave the default 11112 port and then do a simple port redirection from 104 externally to 11112 internally using iptables

Pela Silveira

unread,
Jul 4, 2019, 6:33:23 AM7/4/19
to dcm4che
You are right. I have changed to 11111 and it works.

Thanks!
Message has been deleted

Pela Silveira

unread,
Jul 4, 2019, 10:10:38 AM7/4/19
to dcm4che
here is the configuration i have made.

first i enable ipv4 forward 
edit  /etc/sysctl.conf and uncomment net.ipv4.ip_forward = 1

then I run  sudo sysctl -p

here is the command to enable port forwarding
sudo iptables -t nat -i ens160 -A PREROUTING -p tcp --dport 104 -j REDIRECT --to-port 11112


 





num  target     prot opt source               destination
1    REDIRECT   tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:104 redir ports 11112

Jon Ander Zuccaro

unread,
Jul 4, 2019, 11:23:12 AM7/4/19
to dcm4che
Looks good to me, the only thing that maybe is missing is the step to make the iptables changes permanent so they survive a reboot, I believe you need to use iptables-save, depends on your distro though so look it up.

Good luck.
Message has been deleted

Pela Silveira

unread,
Jul 4, 2019, 2:49:39 PM7/4/19
to dcm4che
yes you are right. thank you very much.
Reply all
Reply to author
Forward
0 new messages