Question

Post request in 3rd party endpoint Failed time out

I deploy my laravel app to digital ocean droplet. everything work fine. when I send post request from my server to my 3rd party end point 196.188.120.3:38443/…, respond me with timeout error. here is what did so far

  • test different 3rd party end point with port 8080 and it work fine(working),
  • test in postman 96.188.120.3:38443/… it works fine (client server working),
  • test in 96.188.120.3:38443/… local environment it is working fine (working),

My suspension on this problem is

  • my Firwall outbouding error, sudo ufw allow out on eth0 to any port 38443 i add this rule(noting change),
  • curl -kv 96.188.120.3:38443, stil time out,
  • review my nginx (but i guess its for inbounding request),
  • i also setup cloudflare (but i guess its responsible for inbounding, i proxy orange, but i guess its not change my outbounding ip address),
  • they(3rd party end point owners) told me send them ip address and port to white list (I send them my droplet ip address and port (443) because i my site is https from cloudflare), u think its wrong ?
  • everthing i try is failed. I run thin in my droplet terminal iptables -A INPUT -p tcp --dport 38443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT but still failed

any idea please i have this issue for week, I am stressed thanks


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

when I contact 3rd party they request Ip address and port to whitelist, the problem is when I check all my outbounding requests use different port no, what should I do? Its possible to force all my post request with static port or should I give them only my droplet Ip address?

Bobby Iliev
Site Moderator
Site Moderator badge
October 2, 2024

Hi there,

Indeed, Cloudflare and Nginx should not be related here as you are making outbound calls to that API.

I just tried connecting to telnet 196.188.120.3 38443 and it times out for me as well. So it sounds like that the third party provider has some firewall in place blocking all incoming traffic on that port.

The third party provider needs to allow your Droplet’s IP address to access port 38443 as this is the port that you are connecting to.

Port 443 is your HTTPS port for incoming connections.

Let me know how it goes once they allow your Droplet’s IP address for that 38443 port!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more