Several common methods for use in the network programming are involved.
1. Private attributes in ASP.NET: Get server name: page.server.manchinename Get User Information: Page.Request.userHostname Get Client Computer IP: Page.Request.userHostaddress
2. General Method in Network Program: Get the current computer name: static system.net.dns.getHostName () Remove all IP addresses according to the computer name: static system.net.dns.resolve (computer name) .Addresslist can also be based IP address removing the computer name: static system.net.dns.resolve (IP address) .hostname
3. General Properties of System Environment: Current computer name: static system.environment.Machinename current computer belongs: static system.environment.Userdomainname Current computer users: static system.environment.username