Skip to content

connection timeout & tls handshake timeout (android) #403

Closed

Description

@Abosw

Hey @therealaleph, i did the tasks for Android one by one, but it doesn't work, i think as you said Connection timeout error is for google ip, the google ip auto detected this: 216.239.38.120, but it doesn't work , can you please send me some google ips please

Errors: tls handshake timeout, timeout

Activity

  1. changed the title [-]connection timeout (android)[/-] [+]connection timeout & tls handshake timeout (android)[/+] on Apr 28, 2026
  2. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @Abosw — 216.239.38.120 is the most-common Google front IP for mhrv-rs setup, but Iran ISPs sometimes filter specific IPs while leaving others reachable. Test the alternates and pick one that responds:

    # Run from your phone via Termux, or from your PC if on the same ISP path:
    for ip in 216.239.38.120 142.251.214.78 172.217.18.78 64.233.180.78 74.125.196.78 142.250.190.78 172.217.16.78 142.250.180.78 142.251.40.78 142.250.80.78; do
      echo -n "$ip: "
      timeout 5 openssl s_client -connect "$ip:443" -servername www.google.com \
        < /dev/null 2>/dev/null \
        | grep -E "subject=" | head -1 || echo "FAIL"
    done

    Each IP that returns subject=...Google... is reachable from your ISP. Pick the fastest one (the one that prints first) and put it in config.json:

    {
      "google_ip": "142.251.214.78",
      ...
    }

    Restart mhrv-rs after the config change.

    If all 10 IPs above FAIL: your ISP filter is more aggressive than per-IP — it's blocking the entire Google front range or filtering by SNI/connection-pattern. In that case:

    • Try the same test from a different network (mobile data instead of wifi, or vice-versa) — confirm it's ISP-specific
    • If completely blocked: only Full mode + VPS is viable

    v1.8.x roadmap fix: google_ip rotation will be auto-probed by the client itself (#313). Until then, manual rotation is the workaround.

    For Android specifically:

    Android can't run openssl directly, so options:

    • Run the test on PC + paste the working IP into Android's mhrv-rs config (Settings → Advanced → google_ip)
    • Or use Termux: pkg install openssl-tool then run the script above

    If you prefer not to mess with this, drop a working google_ip from the test result here and I can confirm the format you need to set in Android.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  3. therealaleph commented on May 15, 2026

    @therealaleph
    Owner

    فعلاً این issue را می‌بندم چون بیش از ۷ روز از پاسخ/درخواست اطلاعات گذشته و از طرف گزارش‌دهنده اصلی پیگیری جدیدی نیامده.

    اگر مشکل هنوز روی آخرین نسخه وجود دارد، لطفاً همین‌جا دوباره کامنت بگذارید یا issue را reopen کنید و نسخه، mode، شکل config مرتبط و log جدید را بفرستید.


    Answered via LLM, Supervised @therealaleph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions