In the Options (alt + o) > DCC > Server section ensure the relevent 'listen for' options are checked. If both clients have the dcc server enabled you will need to change the port on one of them and use /dcc chat 127.0.0.1:NewPort. Both clients will 'race' to take port 59 otherwise, which may be why it appears to be random.

Hope that helps smile