I have an application which was currently only being used on Windows machines. Now want to use it also in raspberry PI with linux distributions (raspbian).
My problem is this line:
string ComputerName = System.Net.Dns.GetHostEntry(Request.ServerVariables["REMOTE_ADDR"]).HostName;
This was giving my Active Directy PC full name. Now on the PI I would like to have something like IPAddress + Hostname
. But I don´t know how to get those values from a C# application.
Any help would be appreciated, tnx.