report better-configured hostname to client for socket communication

fixes #17