[Tex/LaTex] MiKTeX: connect failed in tcp_connect

installingmiktexpackages

I already read these threads: 1, 2, 3 and 4 which address the connection error connect failed in tcp_connect(). I found out that the address I can't connect to is 178.77.68.21 but there is nothing ftp://178.77.68.21 and http://178.77.68.21. It would even be helpful if someone could validate that this process works for him right now. Which file do I need to change to force a repository change to something like CTAN.

This is a clean fresh installation (but reinstalling seems to have helped this guy at least temporarily). Also I do not have any other problems with my internet connection on any port.

I have no firewall. And get the following:

Installation dialog comes up

Installation failed

Synchronize failed

Repo change failed

Update1

Obviously this issue can't be generalized some of us suffer sometimes from it and have to deal with it while generating specific solutions. When I solved this problem I will post (in detail) what was the cause and the fix to it.

Update2

The solution is that MikTex won't use the systems default proxy settings. It always assumes that there is no proxy. On Windows use the console cmd.exe and type ipconfig /all and proxycfg -u(or netsh winhttp import proxy ie) to find all necessary information about your NICs. The line Proxyserver from proxycfg command will tell you what to enter here:
enter image description here

Yes, I am behind a proxy on this machine and didn't take this into account…

Best Answer

Everything works fine here. I just made an update and installed new packages.

Some more information:

178.77.68.21 - Reverse IP Lookup on DomainTools shows you, that this IP is used amongst others for http://miktex.org/. The reason is that in these cases, when you have package installation from a random or from the “nearest” repository selected, the page http://api.miktex.org/Repository.asmx is called. Maybe this was temporarily down or you have more serious connection issues from your region.

But this is not TeX related and also for your question is guilty what I wrote in Cannot install MiKTeX 2.9 after a new Windows installation:

“Sorry, but this kind of questions is not answerable on a valuable level. The issue is in most cases not related to MiKTeX installer itself, not speaking of TeX in general”.

Related Question