How do I solve "Cannot Register Address" error for dxserver?
search cancel

How do I solve "Cannot Register Address" error for dxserver?

book

Article ID: 54782

calendar_today

Updated On:

Products

CA Directory CA Security Command Center CA Data Protection (DataMinder) CA User Activity Reporting

Issue/Introduction

Description:

When you try to start a dxserver, you may get "cannot register address" error. This means that another process is using the dxserver's port number.

Solution:

There are two ways to solve this problem.

  • Change the port number in the dxserver's knowledge file located in "DXHOME/config/knowledge" folder and then start the dxserver

  • Find and shutdown the process that is using the dxserver port.

    • WINDOWS

      On the command prompt run

      % netstat -b

      This will display the executable involved in creating each connection or listening port.

      In the output locate the line which displays the dxserver port number. The line below the port number will have the process which is using this port.

      Eg. DXserver port was 19289

      TCP kangaroo:19289 localhost:1069 ESTABLISHED 1276

      [cam.exe]

      You can kill the process and then start the dxserver.

      NOTE: This method is not recommended, you will need to ascertain if the process which is using the port is critical to your system.

    • UNIX

      You can execute the following script as user "root" to find which process is using the dxserver port.

      #!/bin/sh   if [ $# != 1 ]; then       echo "$0 [portnum]"       exit 1   fi   PORTNUM=$1   PIDS=`ps -ef $LIMIT_UID| awk '{ print $2 }' | sed 1d`      for p in $PIDS ;do       pfiles $p 2> /dev/null | grep "port: $PORTNUM" > /dev/null 2>&1         if test 0 -eq $? ;then           if test -z "$PRINT_ARGS" ;then             ps -p $p | sed 1d           else            pargs -l $p           fi         fi   done
      Eg. DXserver port was 19289

      If the above script was named checkport.sh you would need to run the following command as user "root"

      % checkport.sh 19289

      You can kill the process which is using the dxserver port and then restart the dxserver.

      NOTE: This method is not recommended, you will need to ascertain if the process which is using the port is critical to your system.



Environment

Release: ESPDIR99000-8.1-Extended Support Plus-for CA Directory
Component: