Resolve and connect using IPv4 only.
Section: Debugging and Diagnostics
Force IPv4
bash
bash
curl -4 https://example.comExplanation
Helpful for troubleshooting mixed IPv4/IPv6 environments.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Debugging and Diagnostics
Limit total transfer time
Abort the request after a fixed total duration.
Override DNS resolution
Map a hostname and port to a specific IP address.
Redirect one host:port to another
Change where curl connects without changing the URL's host name.