cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Connection refused when sending a PHP cURL request to my REST API

I have some custom PHP code for my website, which communicates with a REST API that I created myself. The API lives on a cloud VM on another hosting service. It's not part of another website, so it just has its own IP address and no domain.

 

Apparently, GoDaddy has some kind of firewall that blocks any outgoing requests to this VM, because I always get a "connection refused" error from the cURL request. It works fine on my local machine though, so this issue is definitely on GoDaddy's end.

 

Is there some way that I can allow outgoing requests to my REST API from my website on GoDaddy? The entire point of the REST API is to serve up content that will be displayed on the website, so, it's kind of important.

1 REPLY 1
Helper VI Helper VI
Helper VI

Re: Connection refused when sending a PHP cURL request to my REST API

You would have to call support... I've made a similar request a long time ago.

~Jan Mykhail Hasselbring Web Administrator @ fullstackwebsolution.com