Issue #166
Different way to determine IP address for unit tests. Should work on Ubuntu as well as OS X, but haven't tested it yet.