# Regions and Connecting

To connect, point your existing application or client to one of several hostnames below and ensure your client is setup to authenticate using your API key as the password

```
$ redis-cli -h xyz.connect.thiicket.com
xyz.connect.thiicket.com:6379> AUTH 6ac806cc-adce-465a-b5f7-25d6748c2368
OK
xyz.connect.thiicket.com:6379> 
```

{% content-ref url="master" %}
[master](https://docs.thiicket.com/master)
{% endcontent-ref %}

| Region                      | Hostname                |
| --------------------------- | ----------------------- |
| Automatic                   | connect.thiicket.com    |
| Ashburn, Virginia (US East) | iad.region.thiicket.com |

{% hint style="info" %}
Need lower latency or a closer region? [Let us know](mailto:support@thiicket.com?Subject=Region%20Suggestion) where you want our next region to be
{% endhint %}

| Service           | Port |
| ----------------- | ---- |
| Standard          | 6379 |
| TLS (Recommended) | 6380 |

Currently TLS is not supported on automatic routing (connect.thiicket.com), to make use of TLS please connect directly to your target region

## Using TLS

### NodeJS

```javascript
const redis = require("redis");

const client = redis.createClient("rediss://iad.region.thiicket.com:6380", {
    auth_pass: "INSERT YOUR API KEY HERE"
});

client.set("A", "B", (err, res) => {
    if (err != null) console.log(err)
    console.log(res);

    client.get("A", (err, res) => {
        if (err != null) console.log(err)
        console.log(res);
        process.exit(0);
    })
});
```

```javascript
$ node index.js 
OK
B
```
