Why do I get "Error while connecting: couldn’t connect to host"?

If you're receiving this error when trying to access ShortPixel API from  ShortPixel Image Optimizer on your website then the problem is most likely related to your DNS resolver.

Usually the solution is to contact your hosting provider letting them know that http(s)://API.ShortPixel.com won't resolve to its IP address and they should be able to help you.

Alternatively you could also try to configure your computer to use a public DNS like

Still need help? Contact Us Contact Us