dcm4che-5.12.0 findscu tool - bind failed with incorrect info

94 views
Skip to first unread message

Docjay

unread,
Feb 28, 2018, 5:04:18 PM2/28/18
to dcm4che
Version:  toolkit 5.12.0

  Hi,

   I'm using the newest toolkit from https://github.com/dcm4che/dcm4che/releases ( got the binary from there) and I'm using the tool findscu (linux variant) from the tool kit.

When I try to use the '-b' or '--bind' option, it fails. 

here is an example:
./findscu --bind STORE_SCP1@192.168.1.10:104 -c RADARCH2@192.168.1.20:3140 -mStudydate=20070130-20070712 -r0020000D --out-dir=/opt/migration

it fails with:

15:54:27,256 INFO  - Initiate connection from /192.168.1.10:0 to 192.168.1.20:3140
findscu
: Cannot assign requested address (Bind failed)
java
.net.BindException: Cannot assign requested address (Bind failed)
        at java
.net.PlainSocketImpl.socketBind(Native Method)
        at java
.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
        at java
.net.Socket.bind(Socket.java:644)
        at org
.dcm4che3.net.Connection.connect(Connection.java:939)
        at org
.dcm4che3.net.ApplicationEntity.connect(ApplicationEntity.java:609)
        at org
.dcm4che3.tool.findscu.FindSCU.open(FindSCU.java:448)
        at org
.dcm4che3.tool.findscu.FindSCU.main(FindSCU.java:363)



Should I fall back and try a different version?

Thanks

ChadN

unread,
Feb 28, 2018, 5:09:07 PM2/28/18
to dcm4che
Linux restricts ports < 1024 to the root user. Are you running as root (or could you try another port)?


Docjay

unread,
Feb 28, 2018, 5:34:02 PM2/28/18
to dcm4che
I"m running as root.  If I change the port from 104 to 3140, it still comes back with 'Initiate connection from /192.168.1.10:0 to 192.168.1.20:3140'

same error message

gunterze

unread,
Mar 1, 2018, 3:20:22 PM3/1/18
to dcm4che
Guess the host on which you run the utility does not have the specified IP: 192.168.1.10.

dcm4che ignores the specified client port (:104 or :3140). It always let the system select a free ephemeral port. If you do not specify an IP, also the socket client IP will be selected by the system. Typically, you only have to specify a client bind address, if your host has several IPs and you want to use a particular one of them for the outgoing connection.

gunter
Reply all
Reply to author
Forward
0 new messages