Data center management traditionally requires a lot of manual effort, and the same data often must be entered into multiple disparate systems. Not only does this waste time, but it leads to inaccurate data due to human error.
Part of implementing an error monitoring platform like elmah.io is dealing with the IP addresses of the clients generating errors. In this post, I'll show you parts of how we have implemented this in ASP.NET Core, to make sure that different hosting scenarios still produce the correct IP address. Let's jump right in. ASP.NET Core supports getting the client IP directly on the HttpContext object available throughout various places.