Do Talk! Software knowledge (1) - How to get the machine name and IP address?

xiaoxiao2021-03-06  37

Strmyname = DNS.GETHOSTNAME ();

IPHOSTENTRY IPENTRY = DNS.GETOSTBYNAME (STRMYNAME);

Ipaddress [] ipaddr = ipentry.addresslist; string strip = ipaddr [0] .tostring ();

Myip = ipaddress.parse (Strip);

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

New Post(0)