shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.21k stars 11.57k forks source link

No Internet Access: Unable to resolve host "cp.cloudflare.com" #2606

Closed randef1ned closed 3 years ago

randef1ned commented 3 years ago

Describe the bug When I test the connection, I get "No Internet access. Unable to resolve host 'cp.cloudflare.com', No address associated with hostname". It errors most of the time, but my laptop and my iPad works normally. DNS server works properly. The server works well. Settings are all correct. No block. Several other WiFi networks are tried, but it stills. Network settings are cleared.

To Reproduce Steps to reproduce the behavior:

  1. Connect to Shadowsocks server
  2. Test the connection
  3. Failed and reported error

Expected behavior A clear and concise description of what you expected to happen. Connect to Shadowsocks server

Screenshots If applicable, add screenshots to help explain your problem. image

Smartphone (please complete the following information):

Configuration Put an x inside the [ ] that applies.

Additional context It reproduces on my two vivo phone but fails to reproduce on my xiaomi phone. My xiaomi 6 (Android 9.0) works pretty well.

SP-937-215 commented 1 year ago

The fix #2950 is not merged in the version 5.2.6 available on Google Play, same error still happens when cp.cloudflare.com is not resolvable

WeidongWu1949 commented 1 year ago

我也有这个情况,但直到我扫了电脑端的QR码才发现是我写错密码了。 I also have this situation.Until I scanned the QR code on the computer and found out that I had written the wrong password

ROKBAS commented 1 year ago

Changing server port fixed it for me. Look like the original server port got disabled by service provider or blocked by gwf.

Yeah and not to forget to allow connection by ufw.

chncwang commented 1 year ago

I encountered this issue these days. I wonder why the client needs to visit cp.cloudfalre.com in the first place. What does this address mean?

dmjar1 commented 11 months ago

I encountered this issue these days. I wonder why the client needs to visit cp.cloudfalre.com in the first place. What does this address mean?

It uses it to check if the connection is successful. Unfortunately its easy to block that by governments.

chncwang commented 11 months ago

I encountered this issue these days. I wonder why the client needs to visit cp.cloudfalre.com in the first place. What does this address mean?

It uses it to check if the connection is successful. Unfortunately its easy to block that by governments.

I see. So it gets the IP address via the local DNS and then gets blocked.

ZoneQ commented 8 months ago

After about 10 days of usage, I encountered the same issue again. To resolve this, I changed my server port, but I'm unsure if this will prevent the issue from recurring. I'm seeking answers