Fix auth when not bound to localhost interface.

Addresses #154