Base solution for your next web application
Open Closed

Socket Exception #5350


User avatar
0
PhilWynn created

Hi,

I am running Aspnet Zero v4.0 with Abp 3.5 I am hosting my app on Azure.

I am seeing the entry below many times in my hosted Azure log file:

DEBUG 2018-07-09 08:48:43,729 [17 ] Abp.Auditing.WebClientInfoProvider - System.Net.Sockets.SocketException (0x80004005): No such host is known at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostAddresses(String hostNameOrAddress) at Abp.Auditing.WebClientInfoProvider.GetClientIpAddress()

However, I do not see this message when running locally.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    [https://github.com/aspnetboilerplate/aspnetboilerplate/blob/v3.5.0/src/Abp.Web/Auditing/WebClientInfoProvider.cs#L71])

    You can implement your own IClientInfoProvider. Look at the problems caused by those IP addresses. Handle these special cases.