Recently we switch our internet leased line provider and after that the provider did some configurations to the router I was using, after the network started working and everything was fine, till I tried to “repo sync” Android open source code, I was unable to do the repo sync and got multiple errors like below, fatal: unable to access 'https://android.googlesource.com/': Failed to connect to android.googlesource.com port 443: Connection timed out Initially I thought this could be temporary issue, but even after multiple repo sync attempts, issue persisted. So this is what I tried below to avoid this error. Solution The problem seems to be with some DNS configurations or something hence I disconnected from router and connected to Mobile Hotspot and retried the repo sync and everything worked without any error.
Command line execution
sed line provider and after that the provider did some configurations to the router I was using, after the network started working and everything was fine, till I tried to “repo sync” Android open source code, I was unable to do the repo sync and got multiple errors like below, fatal: unable to access 'https://android.googlesource.com/': Failed to connect to android.googlesource.com port 443: Connection timed out Initially I thought this could be temporary issue, but even after multiple repo sync attempts, issue persisted. So this is what I tried below to avoid this error. Solution The problem seems to be with some DNS configurations or something hence I disconnected from router and connected to Mobile Hotspot and retried the repo sync and everything worked without any error. ( Basically disconnected from router and used another network provider ) Somehow when I connect to my router, and try ping to “googlesource.com” and “android.googlesource.com” , I am not able to ping to this two domains, but as soon as I connect to mobile hotspot, I can ping to both this Domains. Tried differnet configurtions in router, also by using OpenDNS, but it didnt worked, but as soon as I connect to hotspot, I can repo sync without any problem, so I am suspecting those websites somehow are blocked by my ISP’s DNS.Implementation details
( Basically disconnected from router and used another network provider ) Somehow when I connect to my router, and try ping to “googlesource.com” and “android.googlesource.com” , I am not able to ping to this two domains, but as soon as I connect to mobile hotspot, I can ping to both this Domains. Tried differnet configurtions in router, also by using OpenDNS, but it didnt worked, but as soon as I connect to hotspot, I can repo sync without any problem, so I am suspecting those websites somehow are blocked by my ISP’s DNS.
Gotchas and common issues
Permission checks - verify user access rights and sudo privileges before executing system-level operations.
Environment configuration - double-check path variables and dependency versions to prevent runtime failures.
Backup safeguards - maintain configuration backups before applying system or database modifications.
Following these steps ensures clean configuration and reliable execution for solved – failed to connect to android.googlesource.com port 443: connection timed out.
Comments and corrections