# How do I connect to my Redis server?

https://www.seturack.com/en/knowledgebase/article/how-do-i-connect-to-my-redis-server

1. In the panel, open **My servers** and click your server.
2. On the **Overview** tab, wait for the **App** row to say "Redis is ready". The page refreshes itself.
3. Copy the details from the **Connection address** and **Password** rows.

## Connecting

From the command line:

`redis-cli -h IP -a PASSWORD`

Connection string: `redis://:PASSWORD@IP:6379/0`

Data is also written to disk (AOF), so it survives a server restart. The memory limit is set to about three quarters of the RAM during installation (`maxmemory`). At the limit, Redis refuses new writes. If you resize your server, raise the value in `/etc/redis/redis.conf` and run `systemctl restart redis-server`.

## Security

- Database port **6379** is open to the internet. To let only your own servers connect, limit it in the firewall: `ufw delete allow 6379/tcp`, then `ufw allow from YOUR_IP to any port 6379`.
- Connections come without TLS. The password and data are not encrypted, so we recommend limiting access to your own IP address.

**No server yet?** [Order a server with Redis installed](https://www.seturack.com/en/redis-vps): you choose the size and pay for what you choose.
