Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@rjcrystal

This comment has been minimized.

Copy link

commented May 8, 2015

Thanks a lot man didn't knew it would be this simple 👍

@adiwids

This comment has been minimized.

Copy link

commented Jan 24, 2016

👍
It's working for me.
I had this unreachable issue when install composer.

Many thanks.

@rkkautsar

This comment has been minimized.

Copy link

commented Jan 30, 2016

👍
Thanks

@chhaprohconsultancy

This comment has been minimized.

Copy link

commented Feb 15, 2016

Its not working in my case

@thanhleviet

This comment has been minimized.

Copy link

commented Feb 24, 2016

It works for me. Many thanks.

@spurdow

This comment has been minimized.

Copy link

commented Mar 6, 2016

Its not working for my case :'(

@dd1994

This comment has been minimized.

Copy link

commented Mar 11, 2016

👍 works fun

@rolindroy

This comment has been minimized.

Copy link

commented Jun 16, 2016

Cool. It works for me.

@hubert10

This comment has been minimized.

Copy link

commented Jun 27, 2016

Thanks,it worked for me.

@JohnnyXiao

This comment has been minimized.

Copy link

commented Jul 25, 2016

thanks

@deepakmadstech

This comment has been minimized.

Copy link

commented Jul 29, 2016

Thanks :)

@Parmarno

This comment has been minimized.

Copy link

commented Aug 23, 2016

thx work for me

@ad05bzag

This comment has been minimized.

Copy link

commented Oct 7, 2016

worked for me!

@joseluis

This comment has been minimized.

Copy link

commented Nov 17, 2016

Thank you!

@inlandfx

This comment has been minimized.

Copy link

commented Dec 7, 2016

It worked but i don't know why forcing ipv4 is necessary to make it work

@samkeeleyong

This comment has been minimized.

Copy link

commented Dec 31, 2016

Thanks! it worked for me, but could you explain what the command does and how it solves the problem?

@varun054

This comment has been minimized.

Copy link

commented Feb 1, 2017

Its working for me. :)

Thanks dude.

@itbidhan

This comment has been minimized.

Copy link

commented Feb 18, 2017

nice trick echo ipv4 >> ~/.curlrc

@kumar88kanishk

This comment has been minimized.

Copy link

commented Apr 7, 2017

It worked for me but can someone explain this. What was causing the issue and how this solved it?

@vikaschauhan1

This comment has been minimized.

Copy link

commented Jun 16, 2017

great (y).

Thanks

@avitiw

This comment has been minimized.

Copy link

commented Jan 18, 2018

Thanks a lot. Saved my time. I was trying to install OCaml on Bash on Ubuntu on Windows. Got the error on Opam init.

Failed to connect to opam.ocaml.org port 443: Connection refused

Doing this resolved it.

@yanfeiyu

This comment has been minimized.

Copy link

commented Jan 31, 2018

Thanks a lot!!!Works for me as well!

@linuxguy27612

This comment has been minimized.

Copy link

commented Apr 25, 2018

Thanks very helpful

@ngovanduy

This comment has been minimized.

Copy link

commented Jun 6, 2018

Thanks you very much 👍

@00dimas

This comment has been minimized.

Copy link

commented Oct 8, 2018

Nice tricks thx a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.