• Resolved alwanma27

    (@alwanma27)


    Hello Dear,

    Hope this message finds you well.

    I was trying to use wp_remote_post to send data from my WordPress database to my company server using API and receive a response but each time I get “cURL error 7: Failed to connect to {my_target_url} after 60 ms: Connection refused”. What can I do to fix this. I also tried to use Postman application to test the API but all was good.

    Thank You
    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    The connection between the server running WordPress and the remote URL could be prevented by a firewall at the hosting of WordPress or the remote URL. For this, talk to the hosting support of your WordPress website. Also check if the company server is really publicly accessible on the respective port.

    Overall, this is not so much a WordPress problem, but rather a technical problem with the hosting.

    Thread Starter alwanma27

    (@alwanma27)

    Hello @threadi

    Deal thank you for your response.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Connection Refused’ is closed to new replies.