removed localhost conneciton from socket