removing localhost reference on socket connect