When you run flutter doctor, Flutter checks if your system can reach important servers like:
If these URLs aren’t reachable, you’ll see errors like:
[!] HTTP Host Availability
âś— HTTP host "https://pub.dev/" is not reachable.
Reason: Connection terminated during handshake
This usually means network restrictions, SSL issues, or proxy/firewall blocks.
macOS:
softwareupdate –all –install –force
Linux (Debian/Ubuntu):
sudo apt-get update && sudo apt-get install –reinstall ca-certificates
Corporate or school networks often block or filter SSL connections.
If behind a proxy, set Flutter’s proxy settings:
export http_proxy=http://username:password@proxy.server:port
export https_proxy=http://username:password@proxy.server:port
Run:
curl -I https://pub.dev
If you see SSL errors or timeouts, your machine isn’t reaching the server. This confirms it’s a system/network issue.
SSL fails if your system clock is wrong.
Make sure your device time is set to automatic (sync with the internet).
If only cocoapods.org fails:
sudo gem install cocoapods
pod repo update
This refreshes CocoaPods and fixes outdated SSL settings.
You can also run flutter clean and flutter pub cache repair.
Work with our skilled Flutter developers to accelerate your project and boost its performance.
Hire Flutter Developers