. NET Server-side information

Source: Internet
Author: User

if (session["Wolf"]==null)
{
session["Wolf"] = Guid.NewGuid ();
}

Label0.text = "Request Start time:" + DateTime.Now.ToString ("Yyyy-mm-dd HH:mm:ss");
Label1.Text = "Server name:" + server.machinename;//server name
Label2.Text = "Server IP address:" + request.servervariables["local_addr"];//server IP Address
Label3.text = "HTTP Access port:" + request.servervariables["Server_port"];//http Access Port "
Label4.text = ". NET Interpretation engine version: "+". NET CLR "+ Environment.Version.Major +". "+ Environment.Version.Minor +". "+ Environment.Version.Build + "." + environment.version.revision;//. NET Interpretation engine version
Label5.text = "Server OS version:" + Environment.OSVersion.ToString ();//Server OS version
Label6.text = "Server IIS version:" + request.servervariables["server_software"];//Server IIS version
Label7.text = "Server domain name:" + request.servervariables["SERVER_NAME"];//Server domain name
Label8.text = "Absolute path to Virtual directory:" + request.servervariables["Appl_rhysical_path"];//virtual directory absolute path
Label9.text = "Absolute path to execute file:" + request.servervariables["path_translated"];//execution file absolute path
Label10.text = "Virtual directory session total:" + Session.Contents.Count.ToString () + "Wolf:" + session["Wolf"];//virtual directory session Total
Label11.text = "Total number of virtual directory application:" + Application.Contents.Count.ToString ();//Total number of virtual directory application
Label12.text = "Domain Host:" + request.servervariables["http_host"];//domain host
Label13.text = "Server area language:" + request.servervariables["http_accept_language"];//Server regional language
Label14.text = "User information:" + request.servervariables["http_user_agent"];
Label14.text = "Number of CPUs:" + environment.getenvironmentvariable ("number_of_processors");//CPU number
Label15.text = "CPU type:" + environment.getenvironmentvariable ("Processor_identifier");//CPU type
Label16.text = "Request Source Address:" + request.headers["X-real-ip"];

. NET Server-side information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.