> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/faq/faq-autify-connect/does-autify-connect-support-localhost-testing.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Can I use Autify Connect to test localhost websites?

Yes, you can use Autify Connect to test websites running on `localhost`. However, it will not work correctly if the target URL of the scenario links to a local host or local network, such as `http://localhost` and `http://127.0.0.1`. Therefore, please use one of the following methods to run tests:

1. Use `localhost.autify.com`.\
   We have an FQDN pointing to `127.0.0.1`. You can use this FQDN instead of `localhost` or `127.0.0.1`. If you have already recorded a test scenario with a hostname such as `localhost`, you can use the URL Replacement feature in the test plan.
   * Can I use `localhost.autify.com` with `https`?
     * Yes, we have a local SSL cert to make the `localhost.autify.com` working with `https`. Following the steps below to setup the SSL certificate

       * Download the [AutifyCA.pem](https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autify-localhost-ssl-cert/AutifyCA.pem), [localhost.autify.com.crt](https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autify-localhost-ssl-cert/localhost.autify.com.crt) and [localhost.autify.com.key](https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autify-localhost-ssl-cert/localhost.autify.com.key) files
       * Make your system trust the root certificates

       MacOS

       ```
       sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" /file/path/AutifyCA.pem
       ```

       Linux

       ```
       # Install the ca-certificates package.
       sudo apt-get install -y ca-certificates

       # Rename AutifyCA.pem file to AutifyCA.crt and copy to the `/usr/local/share/ca-certificates` directory
       sudo cp AutifyCA.pem /usr/local/share/ca-certificates/AutifyCA.crt

       # Run the update command
       sudo update-ca-certificates
       ```

       * After add the root certificates, you can run your local server with the localhost.autify.com crt and key file
         * Example for Nginx setup:

       ```
       # You can find more infomation about Nginx SSL setup here: http://nginx.org/en/docs/http/configuring_https_servers.html
       # Add the setup below to the Nginx config
       server {
           ...
           listen                 443 ssl;
           server_name            localhost.autify.com;
           ssl_certificate        /file/path/localhost.autify.com.crt;
           ssl_certificate_key    /file/path/localhost.autify.com.key;
       }
       ```

       * Access `https://localhost.autify.com` and confirm
2. Use another IP address, such as `192.168.86.92`.
3. Edit the `hosts` file and set the application alias as follows:

   ```
   127.0.0.1       local.your-application.com
   ::1             local.your-application.com
   ```

   The `hosts` file is usually located at the following path:

| OS           | Path                                  |
| ------------ | ------------------------------------- |
| Linux, macOS | /etc/hosts                            |
| Windows      | c:\Windows\System32\Drivers\etc\hosts |

Note that the following hostnames are not supported (this is not an exhaustive list). If you record a scenario using these hostnames, you will need to implement one of the methods described above.

```
localhost
*.localhost
[::1]
127.0.0.1/8
169.254/16
[FE80::]/10
```

*Tests using Windows OS, for example, will also recognize `loopback`.*

{% hint style="warning" %}
**Warning**

Please note that if requests are sent directly to a `localhost` (or any unsupported hostname) within the app, the above workarounds will not work.
{% endhint %}

If none of the above works, please contact Autify support.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/en/faq/faq-autify-connect/does-autify-connect-support-localhost-testing.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
