Added connection exception error printing, and changed hostname to allow local socket connections.