user2423661
user2423661

Reputation: 29

HttpClient request to payment gateway working on localhost but not on godaddy server

I am calling payment gateway with the http of HTTPclient request.

My code is working fine from localhost but not on server.

From localhost StatusCode is OK

From godaddy server this is the error received:

An error occurred while sending the request.System.Net.WebException: Unable to connect to the remote server --->

System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xxx.xx.xx.xx:443 at System.Net.Sockets.Socket.InternalEndConnect

Can someone guide me towards the possible reason for this and solution too

Upvotes: 0

Views: 111

Answers (0)

Related Questions