try to connect to service.