All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Why do on-premises devices fail to connect to Tair over the Internet?

Last Updated:Mar 28, 2026

If an on-premises device cannot connect to a Tair (Redis OSS-compatible) instance over the Internet, the most common causes are: using the wrong endpoint type, missing or incorrect whitelist configuration, or invalid credentials. Work through the steps below to identify and fix the issue.

Cloud-native cluster instances in direct connection mode do not support public endpoints. If your instance is of this type, Internet access is not available.

Troubleshooting process for Internet connection issues of an on-premises device

image

Step 1: Check for authentication errors

Skip this step if the error is connection timed out or no error message appears. Go directly to Step 2.

If you see any of the following errors, the credentials are incorrect:

  • invalid password

  • WRONGPASS invalid username-password pair

  • NOAUTH Authentication required

Solution

  1. Reconnect using the <user>:<password> format. For example, if the username is testaccount and the password is Rp829dlwa, enter testaccount:Rp829dlwa as the password.

  2. If the error persists after using the <user>:<password> format, the password itself is wrong. Reset the password and reconnect. For details, see Change or reset the password.

Step 2: Run ping to test network connectivity

Run the following command on the on-premises device:

Ping <host>

Example: Ping r-bp1zx****.redis.rds.aliyuncs.com

Interpreting the results

  • Ping succeeds — The network is reachable. Proceed to Step 3. Linux On Linux, ping runs continuously. Press Ctrl+C to stop and view statistics. Windows On Windows, ping runs four times and then returns a summary.

    image

    image

  • `0 packets received, 100.0% packet loss` — The network is unreachable. Check that you are using the public endpoint, not the Virtual Private Cloud (VPC) endpoint.

  • `Unknown host` or `Name or service not known` — DNS resolution failed. Check the endpoint for typos.

Common causes and solutions

CauseSolution
Using a VPC endpoint instead of the public endpointIn the Tair (Redis OSS-compatible) console, go to the Instance Information page and find the Internet Access endpoint in the Connection Information section. Copy it and retry. If no public endpoint is listed, click Apply for Endpoint in the Actions column. For details, see Apply for a public endpoint for an instance.
Endpoint has a typoDouble-check the endpoint string and correct any mistakes.
DNS resolution fails even with the correct endpointSee Troubleshoot connection issues caused by failed DNS resolution.

Step 3: Run telnet to test port availability

Run the following command on the on-premises device:

telnet <host> <port>

Example: telnet r-bp1zx****.redis.rds.aliyuncs.com 6379

Interpreting the results

  • `Connected to ...` is returned or the telnet interface appears — The port is reachable. Linux Windows

    Important

    For classic instances, a successful telnet result does not guarantee access. Only IP addresses in the whitelist can connect. Proceed to Step 4 to verify. For information about how to check the whitelist, see Step 4: Check the whitelist.

    image

    image

  • `Connection timed out` or `Connect failed` — The connection fails. A common cause is that the whitelist is incorrectly configured or no whitelist is configured. Proceed to Step 4.

Step 4: Check the whitelist

Check the whitelist when:

  • The domain name is pingable but telnet fails.

  • Connecting with redis-cli returns (error) ERR illegal address or (error) ERR client ip is not in whitelist.

Common causes

  • The public IP address of the on-premises device is not added to the whitelist.

  • No whitelist is configured.

Solution

  1. Find the public IP address of the on-premises device.

    OSCommand
    Linuxcurl ifconfig.me
    Windowscurl ip.me
    macOScurl ifconfig.me
  2. Add the retrieved IP address to the whitelist of the Tair instance. For details, see Configure an IP address whitelist.