ClothesHorse/NSQnet — pull request #3 by politician (2014-06-11 23:15:10+00:00)
Title: nsqd instances should be contacted at their broadcast_address, if specified

The `--broadcast_address` option allows nsqd instances to listen on a specific interface that may differ from the default interface captured by the `hostname`. For example, (1) a server may have multiple NICs, or (2) the hostname may not be resolvable to an IP address because DNS is not set up.

In my case, the nsqd hostname of my laptop was not resolvable to an IP address from the Windows VM running the NSQNet.CLI example code even though both machines are on the same 192.168.1.0 subnet because I don't have DNS setup or a HOSTS file entry. Instead, patching the code to honor the broadcast_address option allows the NSQNet.CLI client to discover and connect to the nsqd instance as expected.