Result (if the computer has a network card): Ip: 192.168.0. ![]() ("Mac: " + GetNetworkAddress.GetAddress("mac")) How to use it: ("Ip: " + GetNetworkAddress.GetAddress("ip")) iwlist wlan0 scan grep Address same as previous command (color etc). Access point will be colored and behind it the MAC address. The MAC address is in the reply between brackets. If the computer has no interface, then it will return an String containing null, otherwise will return a String containing what you asked for (the ip address or the mac). 2 Answers Sorted by: 21 Any of these 3 works: arping 192.168.0.1 Change the IP adress to whatever you use. (either due to missing driver support or bad/mis-identified hardware) check dmesg to confirm that 'eth0' is detected by the system at all. that means the device is not detected in the machine. You need to specify a parameter with a String containing "ip" or "mac" depending on what you need to check. 4 Answers Sorted by: 14 if there is no entry in ifconfig -a. ![]() With all the possible solutions that i've found here and another replies, then i will contribute with my solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |