Error: Failed to connect to shop-name.myshopify.com port 443: Connection refused

Solved
caldar23
Tourist
3 1 0

I'm having an issue connecting from our server to shopify using a private app. 

I can get the expected json response by using the Example URL provided by the app in the browser or using terminal on my computer to curl to the example url. 

When I use curl in my php page on my server, or if I use curl in the terminal there, I get the 'Error: Failed to connect to shop-name.myshopify.com port 443: Connection refused' error. 

My php code works using MAMP on my local machine.

Is my server blocked/blacklisted? Is there a way I can get the IP address of my server whitelisted?

 

0 Likes
caldar23
Tourist
3 1 0

This is an accepted solution.

Okay, this is for the person who finds this in some search in the future:

The issue was that the servers firewall was blocking the outbound request. Something in the command/data the firewall doesn't like triggering it to block.
We have whitelisted the shop domain in the firewall to allow it to pass without interference.

0 Likes
Hyun
New Member
1 0 0

Hello @caldar23 ,

I'm facing similar issue.

Can you please explain more?

Where can I add it? Is it on Shopify or server which has my code?

Currently, I have an app on another server and get access from Shopify API.

Before it was okay. But after some developement, I get same error like you.

 

 

0 Likes
caldar23
Tourist
3 1 0

I have no idea. 

0 Likes