# I am getting error when connecting to local agent using "localhost" name

## Introduction
This issue may occur due to two reasons: "Leapwork Agent service is down" or "localhost name resolution is not working" on your computer.

## Resolution
Follow the below steps to fix this issue.

1. **Leapwork Agent service is down**: Check whether your [Leapwork Agent](/content/product/documentation/architecture/index.html) service is running on the machine. You can do this by opening Windows Service window.
   
   1. Open a run box by pressing the keys: .  
   2. Type ‘services.msc’ and press OK.
   3. Find “Leapwork Agent” in the list of services.
   4. Select “Start” if the service is not “Running”.
   
   **Note**: If you see the message "Access denied", please check (as the case may be with security settings within organization), kindly contact the administrator or the IT department to enable these settings.

2. **Localhost name resolution not working**: In this case, just replace "localhost" name by 127.0.0.1.

If the issue continues, contact our [Priority Support](mailto:prioritysupport@leapwork.com).
