Support the ongoing development of Laravel.io →
posted 1 year ago
Laravel
Last updated by @flipmedia 11 months ago.
0

Dear Friends, At last I found error reason. There is no active internet connection in staging server. cURL is not working for SMS gateway as

[root@KSRTCApp ~]# curl -I http://api.sms.tn.gov.in
curl: (28) Failed to connect to api.sms.tn.gov.in port 80: Connection timed out

Am I right friends ?

Please advise

Thanks

Anes P A

0
moderator

Are you sure that the hostname is: api.sms.tn.gov.in

I can't find it and if I check it with an external service I got the same: https://downforeveryoneorjustme.com/api.sms.tn.gov.in

0

Sorry @tvbeek It's a dummy URL for just post purpose (security purpose) . I tried my URL in putty (For Staging server) as

curl: (28) Failed to connect to xxx.yyyy.tn.gov.in port 80: Connection timed out 

But localhost the SMS Works fine when I try above curl command I got

Server: nginx/0.8.53
Date: Tue, 31 Oct 2023 13:40:46 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Vary: Accept-Encoding`

Please advise

Thanks

Anes P A

0
moderator

@flipmedia that makes sense :)

Because you got a timeout and not an could not resolve to host error I suspect there is a firewall blocking the access. But it allows the DNS request.

I think you need to talk to the system administrators to fix this.

flipmedia liked this reply

1

You are right @tvbeek . Need to white list that IP . So after the problem will vanish...

tvbeek liked this reply

1
Solution selected by @flipmedia

Sign in to participate in this thread!

Eventy

Your banner here too?

flipmedia flipmedia Joined 22 Nov 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.