Several common methods for use in the network programming are involved.

xiaoxiao2021-03-05  21

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

转载请注明原文地址:https://www.9cbs.com/read-38974.html

New Post(0)