Last post Feb 25, 2019 05:06 AM by akbarAzan
Feb 23, 2019 05:43 AM|akbarAzan|LINK
I have a website that accesses an API. when I run it on my localhost it works fine.
but when I publish on the server I get an error.
Unable to connect to the remote server System.Net.Sockets.SocketException (0x80004005):
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 10.10.9.108:50300
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket,
IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
Asking you for your advice.
Feb 25, 2019 03:26 AM|Ackerly Xu|LINK
It seems your service is trying to respond to 10.10.9.108:50300 .
Are you sure it is an external ip address instead of an internal ip address?
If it is an internal address , it couldn't connect to internet.
Please configure your website's ip address.
Also please check whether your website has firewall or proxy.
To disable proxy, you could write below code in web.config.
Feb 25, 2019 05:06 AM|akbarAzan|LINK