> I try HttpContext but it give null value on Client side
That's not too surprising, HttpContext is intended to be used on the server side as part of your ASP.NET application.
The analog on the client side would be:
using (var wi = System.Security.Principal.WindowsIdentity.GetCurrent())
{
Console.WriteLine(wi.Name);
}
As to actually pulling this off, you will probably also need to make sure that IIS is enabled for Windows Authentication mode.