# Configuring a device for new VPN Location manually

If you (or your Defguard administrator) have added a new VPN Location and you would like to connect to that location from your **existing device** (for which you have downloaded configuration for any previous locations), you need to:

1. Go to your account profile.
2. Open Devices tab.
3. Click on device action button and choose **Show configuration**.<br>

   <figure><img src="/files/6lQPNjyI3ajRJGzkvn3n" alt="" width="563"><figcaption></figcaption></figure>

The same configuration screen will popup as you were adding this device, but now you can choose a new location:

<figure><img src="/files/o3PLwzjCxHoaUHqOauW0" alt="" width="488"><figcaption></figcaption></figure>

4. **Download and configure your Wireguard VPN** exactly the same way you did it during the [adding device process](/using-defguard-for-end-users/adding-wireguard-devices.md).

The configuration will be named **LocationName-device.conf** - just add a new configuration to Wireguard client.

5. **Replacing the PrivateKey**

{% hint style="danger" %}
**Defguard doesn't store any user devices' private keys - you need to provide them**
{% endhint %}

Since Defguard doesn't have access to your private keys - **but has your public key stored for that device** - you need to replace the **PrivateKey value** in the new configuration location.

{% hint style="warning" %}
**Where to find the private key for that device?**

Yon can just **copy the whole line** from any other configurations from any other working locations for that device.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.defguard.net/using-defguard-for-end-users/adding-wireguard-devices/configuring-a-device-for-a-new-vpn-location.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
