How to get the client's full computer name in asp.net core

Damon King 1 Reputation point
2021-01-12T12:53:46.457+00:00

Now I use the web api with asp .net core, and I deployed the server in the linux. I want to get the full computer name about the client while requesting. I have searched many solutions, but can't work.
One solution is as follows, I have tested so many ip address, but it only occured 'No such host is known.'

var name = System.Net.Dns.GetHostEntry("180.103.64.30").HostName;
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
{count} votes