{"id":838,"date":"2024-05-07T11:44:13","date_gmt":"2024-05-07T11:44:13","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/i-cannot-validate-the-api-key-how-to-solve-this\/"},"modified":"2025-08-27T08:42:03","modified_gmt":"2025-08-27T08:42:03","password":"","slug":"i-cannot-validate-the-api-key-how-to-solve-this","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/i-cannot-validate-the-api-key-how-to-solve-this\/","title":{"rendered":"I cannot validate the API Key, how to solve this?"},"content":{"rendered":"\n<p>If you ever received this message&#8230;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Your firewall may be blocking us.&nbsp;Please contact your hosting provider and ask them to allow connections from your site to api.shortpixel.com (IP 176.9.21.94)<\/p>\n<\/blockquote>\n\n\n\n<p>&#8230;then it is caused most likely by some firewall restriction in place, that only your hosting provider can assist you with. To be more precise, <strong>the outgoing connections from your server (where you have your website hosted) to our API (port 80 or 443) are not being allowed.<\/strong><\/p>\n\n\n\n<p>You can easily check if this is the case this way:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate the plugin <a href=\"https:\/\/wordpress.org\/plugins\/wpterm\/\" target=\"_blank\" rel=\"noopener\">WPTerm<\/a> on your WordPress site.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-Tzl8W1CQrL.png\"><\/figure><\/li>\n\n\n\n<li>Go to Plugins, look for WPTerm and then select <strong>Terminal<\/strong>.<br><p><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-1ebX1uIGSS.png\"><\/p><\/li>\n\n\n\n<li><p>You should see an interface like this one:<br><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-vy86Wz9kWt.png\"><\/p><\/li>\n\n\n\n<li><p>On that interface, write these two commands<\/p>\n<ul class=\"wp-block-list\">\n<li><pre>telnet api.shortpixel.com 80<\/pre><\/li>\n\n\n\n<li><pre>telnet api.shortpixel.com 443<br><\/pre><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>A<span style=\"font-size: revert; background-color: transparent; color: var(--theme-text-color); font-family: var(--theme-font-family); font-style: var(--theme-font-style, inherit); font-weight: var(--theme-font-weight); letter-spacing: var(--theme-letter-spacing); text-transform: var(--theme-text-transform);\">nd you should see the results of these commands looking like in this example:<\/span><p><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-id7fNxaQJ1.png\"><\/p><\/li>\n<\/ol>\n\n\n\n<p><p>If you cannot replicate the output as in the example above, then please go ahead and <strong>contact your hosting provider<\/strong> letting them know about the outgoing restriction from your server to api.shortpixel.com (port 80 or 443), and they should be able to assist you.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you ever received this message&#8230; Your firewall may be blocking us.&nbsp;Please contact your hosting provider and ask them to allow connections from your site to api.shortpixel.com (IP 176.9.21.94) &#8230;then it is caused most likely by some firewall restriction in place, that only your hosting provider can assist you with. To be more precise, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[37],"glossaries":[],"doc_tag":[],"class_list":["post-838","docs","type-docs","status-publish","hentry","doc_category-shortpixel-image-optimizer"],"blocksy_meta":[],"year_month":"2026-05","word_count":190,"total_views":"6439","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Image Optimizer","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-image-optimizer\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=838"}],"version-history":[{"count":2,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/838\/revisions"}],"predecessor-version":[{"id":2417,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/838\/revisions\/2417"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=838"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=838"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=838"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}