Passaggio all'ora solare 26 ottobre 2025 03:00 02:00 sposta indietro l'orologio di 1 ora (si dorme 1 ora in più)
Un esempio su come ricavarein C#, in una pagina aspx, il nome host del client remoto collegato

C#

System.Net.IPHostEntry hostInfo = new System.Net.IPHostEntry(); 

hostInfo = System.Net.Dns.GetHostByAddress(Request.UserHostAddress); 

Response.Write( hostInfo.HostName ); 
nel caso all'IP fossero associati più nomi

C#

foreach (string n in hostInfo.Aliases)
{
    Response.Write(" " + n);
}
Tags:
C#241 Esempi228 Network13
Potrebbe interessarti anche: