當然也可以配合doslib
dos_ipaddress
Returns a list of local IP addresses.
Syntax
(dos_ipaddress)
Parameters
Returns
A list of strings containing the local ip addresses and subnet mask if successful.
nil on error.
Example
Command: (dos_ipaddress)
("204.177.179.67" "255.255.255.0")
dos_macaddress
Returns the system's media access control (MAC) addresses.
Syntax
(dos_macaddress)
Parameters
Returns
A strings containing the local MAC address if successful.
nil on error.
Example
Command: (dos_macaddress)
"00:00:86:4A:CF:7F"
|