autodetect socket, not just localhost