Update KTServer getHostName() to fallback to 127.0.0.1
Update KTServer getHostName() to fallback to 127.0.0.1

This would previously occassionally crash on macOS, depending on your
hostname and DNS server.

benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus