Question

Post request fail with custom port

i have successfully test client end point (https://developerportal.ethiotelebirr.et:38443/apiaccess/payment/gateway/payment/v1/token" in local it work fine,but in digital ocean server it return time out error. I try allow outgoing traffic on port 38443 ufw,iptables,but nothing working. I Try curl -kv 196.188.120.3:38443 time out.note other client end point url working fine with 8888 port. I try Nginx conf too, but Nginx responsible for inbound request, i am new to networking so Please help me 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.

alexdo
Site Moderator
Site Moderator badge
October 26, 2024

Heya,

You can contact the third-party and request to whitelist the droplet’s and other IP address from which you’ll connect.

Also allow outgoing traffic on port 38443.

Regards

KFSys
Site Moderator
Site Moderator badge
October 4, 2024

Heya,

I can confirm as the others posted that I can’t connect to 196.188.120.3 on pot 38443. This means the provider of that API is blocking the requests.

You can contact them and give them your IP address to whitelist. That way you would be able to connect to the said IP.

Bobby Iliev
Site Moderator
Site Moderator badge
October 2, 2024

Hey!

I just answered a very similar question here:

https://www.digitalocean.com/community/questions/post-request-in-3rd-party-endpoint-failed-time-out?comment=207617

Indeed 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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.