the client begins to connect to localhost