I\'m working on ASP.Net Core 2.1 with Angular Template provided by Microsoft Visual Studio 2017. My Client App is working fine. After competition of User Authentication, I want
This works for me on .Net Core 2.2:
.Net Core 2.2
IPHostEntry heserver = Dns.GetHostEntry(Dns.GetHostName()); var ipAddress = heserver.AddressList.ToList().Where(p => p.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).FirstOrDefault().ToString();