Minor bugfixes from real world testing

Two minor changes that work around real-world problems -- the biggest being that it bound only to loopback -- discovered by Lucas Harms <lmickh@gmail.com>.