Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host

Started by gkhngdc, December 27, 2023, 12:18:51 AM

Previous topic - Next topic

gkhngdc

Hello,

php curl gives error when try to get this xml "https://www.tcmb.gov.tr/kurlar/today.xml"

Curl error: 7 Failed connect to www.tcmb.gov.tr:443; No route to host

Can anyone help me?

rcschaff

Google Hangouts:  rcschaff82@gmail.com


rcschaff

Is it possibly that your servers IP has been blocked by tcmb.gov.tr, as no route to host is most likely a firewall issue.  Couple other issues might be ip6/4 related, but I'm going to assume that your server can reach other ip4 only hosts.

Try "  ping -4 google.com  "  then "ping -4 www.tcmb.gov.tr" and post the results.
Google Hangouts:  rcschaff82@gmail.com

overseer

What was the frequency of your curl attempts? You likely could've trigged a firewall on the other web server. I can connect to it from here as a one-off connection in a web browser and via curl in the CLI.

gkhngdc

--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms

--- www.tcmb.gov.tr ping statistics ---
34 packets transmitted, 0 received, 100% packet loss, time 32999ms


I just installed this server. It's been like this since the beginning.

rcschaff

reach out to tcmb.gov.tr and ask them to check their firewall for your IP being blocked.  If you just got the IP, it could be blocked due to the last person who the IP was issued to was a spammer or hacker.
Google Hangouts:  rcschaff82@gmail.com