By default, the replication server binds the listening ports to all available interfaces of the machine. To bind the listener to a specific address, the address must be the host name provided when replication is enabled and the listen-on-all-addresses property must be set to FALSE.

The replication server’s configuration entry already stores a host name for itself so that it can resolve the address and specify it during the socket bind. If the server information is missing from the system, an error message will be generated with instructions on specific address binding. You can use the dsconfig tool to change the value of the listen-on-all-addresses property from TRUE (default) to FALSE.

To configure a replication server to listen on a single address:

  1. Create a new directory serverinstance with replication enabled on port 8989.
  2. Run netstat to see the ports bound for listening on port 8989. Notice that *.8989 means that it is listening on all addresses.
    $ netstat -an | grep LISTEN | grep 8989
  3. Run dsconfig to disable listening on all addresses for the replication server.
    $ bin/dsconfig set-replication-server-prop \
      --provider-name "Multimaster Synchronization" \
      --set listen-on-all-addresses:false
  4. Run netstat again to see the ports bound for listening on port 8989. Notice that <address>.8989 (for example, 10.8.1.211.8989) means that it is listening on the one address.