# Setup 2FA (TOTP)

Go to the **Settings** page of RDPHelper by clicking on the Settings tab on the left side.

<figure><img src="/files/PGk8npdCX8uUPUKvRAV3" alt=""><figcaption></figcaption></figure>

Thereafter, click the **Start Setup** button in the middle of the screen.

<figure><img src="/files/eVQEtKeIpjjbCtfMzNsQ" alt=""><figcaption></figcaption></figure>

You will be shown a QR code, scan this QR code with your device.&#x20;

<figure><img src="/files/DulP4lPCqO9jYSFhP3GX" alt=""><figcaption></figcaption></figure>

We will be using Google Authenticator for this guide.

<div><figure><img src="/files/lMUPPhdknLOyDS6RB3tT" alt=""><figcaption></figcaption></figure> <figure><img src="/files/Je1xcxjJjUhVOTLAXkpy" alt=""><figcaption></figcaption></figure></div>

Once you've scanned the QR code to your device, click on the Next button. RDPHelper will then ask you to **verify** using the code from your 2FA TOTP app.

<figure><img src="/files/R98zDeMjyfMl6GAdeqfw" alt=""><figcaption></figcaption></figure>

Once you click Verify, RDPHelper will show you a backup code. Please note down this backup code somewhere safe in case you lose access to the TOTP codes.&#x20;

<figure><img src="/files/5CmObWevK6yANDCDFbCG" alt=""><figcaption></figcaption></figure>

We would recommend disabling 2FA for whitelisted IP addresses, so you don't have to input a code each time you login from your home IP.

<figure><img src="/files/6bh3Q7m4lJ5Dzybon2NC" alt=""><figcaption></figcaption></figure>

Now when you try to connect to your server with a non-whitelisted IP, you will be greeted with a 2FA screen asking you to authenticate yourself.

<figure><img src="/files/2WqmIQlkldnDBFdRo8Uu" alt=""><figcaption></figcaption></figure>


---

# 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-servers.zesty.group/security/rdphelper/setup-2fa-totp.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.
