Skip to content

Instantly share code, notes, and snippets.

@jonatanrdsantos
Last active August 21, 2020 05:23
Show Gist options
  • Save jonatanrdsantos/673aa658e46a7342b154 to your computer and use it in GitHub Desktop.
Save jonatanrdsantos/673aa658e46a7342b154 to your computer and use it in GitHub Desktop.
curl port 443: Network is unreachable problem

How to solve the curl port 443: Network is unreachable problem:

joridos@localhost:~/Documents/github$ opam init
default    Downloading https://opam.ocaml.org/urls.txt
'opam init' failed.
# opam-version    1.1.1
# os              linux
Cannot download https://opam.ocaml.org/urls.txt, please check your connection settings.
joridos@localhost:~/Documents/github$ curl https://opam.ocaml.org/urls.txt
curl: (7) Failed to connect to opam.ocaml.org port 443: Network is unreachable

just do it:

echo ipv4 >> ~/.curlrc
@linuxguy27612
Copy link

Thanks very helpful

@ngovanduy
Copy link

Thanks you very much 👍

@00dimas
Copy link

00dimas commented Oct 8, 2018

Nice tricks thx a lot

@masayomitan
Copy link

doesnt work :(

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