Port number

  • How can I find out, what port number i should use in the "K-pacs Server configuration" the default is 104, normal dicom port, as I understand, but can I chose any port number between 1 and ??
    What if I wants to send an recive images between 2 different K-pacs installations, can they run on the same port number, or are there any resons for not doing so?


    Regards


    Christian Johansen

  • The answer depends somewhat upon your local network configuration and any network policies that might be in place within your organization. The port numbers 1-1023 are classified as 'privileged' and in some places these may be blocked by firewalls or local firewall software running on your K-Pacs PC. (e.g. , things like Black Ice defender or Zonealarm). In our situation, privleged ports are selectively blocked by Black Ice Defender as a matter of policy and thus we need to select another unused port > 1023 as our Dicom port (for example we use 1040 in this case). The port should be unique to your computer (i.e., two Dicom packages running on the same computer could not both use port 104), but multiple computers might each use port 104 for their Dicom connections. You can find a list of standard assigned port numbers at:

    http://www.iana.org/assignments/port-numbers

  • I should add that whatever port number that you choose must not conflict with other applications running on your computer. (For example port 80 is used for HTTP connections and thus could not also be assigned to Dicom.)

  • In addition to what CKRONENW was explaining I want to mention that windows has a build-in command to list the used ports of the local system and that might help to find a free port:

    Code
    netstat -an


    The result looks like:


    Active Connections


    Proto Local Address Foreign Address State
    TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:104 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:52514 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1039 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2412 0.0.0.0:0 LISTENING
    TCP 192.168.120.66:139 0.0.0.0:0 LISTENING
    TCP 192.168.120.66:2425 24.222.152.189:42449 ESTABLISHED


    The state LISTENING means that the port is in use by a process, i.e. the port 104 is in use by my local (->0.0.0.0) iQ-VIEW in the list above.


    The command

    Code
    netstat -ano


    will also list the process id (PID) so you can find the process with your taskmanager.


    An alternative free port scanner is nmap (look here: http://insecure.org/nmap/). It can also be used to scan against remote systems.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!