Generally most daemons will have an option in the config to control which IP address and Port pair it will bind or listen on (see man 2 bind
for the nitty-gritty C system call level details).
After you have changed the configuration and restarted the daemon, you can see what it is bound to using the netstat -ln
command. Example output will be something like:
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
0.0.0.0
means all IPs and the :22
means it is listening destination TCP port 22. The second column 0.0.0.0:*
means accepts all source IPs and source ports.
In your case you should see one row that has a local address like 12.12.12.12:6000
and another row with a local address like 13.13.13.13:6000
.
If you there doesn't seem to be an option in the configuration file, it might be a command line switch for the daemon itself. In that case you might need to edit the start up file in /etc/init.d/whatever
. This is usually not the case however.