InterviewSolution
| 1. |
Solve : Real MAC/IP address?? |
|
Answer» Hello The MAC identifies the network hardware rather than the machine itself Oh, right, thanks. I didn't know. I simply wanted to find out the MAC address of my PC - I didn't realise that the MAC address was associated with a network card. So those computers with no Internet connection or network card installed, do not have a MAC address? Thanks again.Quote from: High1 on November 20, 2016, 07:38:10 AM those computers with no Internet connection or network card installed, do not have a MAC address?You got it. Thanks for clarifyingNote that most PCs nowadays have a network adapter chip on the motherboard, rather than a separate network card, and that chip will have a unique MAC address. Most laptops will also have a wifi adapter built in too, and that will have its own separate MAC address. So do smartphones, smart TVs, in fact anything capable of a network connection - anything that has wifi for example, such as cameras. Here is a definition of the MAC address. https://kb.iu.edu/d/alfq Quote EVERY network adapter has a Media Access Control address (usually shortened to MAC address). A MAC address is a six-byte identifying number permanently embedded in the firmware of the adapter, and is readable by the network and the operating system of the device on which the adapter is installed. All Ethernet cards and modems have a MAC address. The address must follow the standards set by the Institute of Electrical and Electronics Engineers (IEEE), which sets computer networking standards. The MAC address is a six-pair set of hexadecimal numbers, for example, a1-c2-e3-44-5f-6d. Notice "The purpose of the MAC address is to uniquely identify every node." In this context a node is a thing that does work taht makes it isignificant in the scheme of thigs. So far, garbage can lids do nat havaq a MAC address. But they have proposed giving a Mac address to the can, just not the lid. Bit that might change. Hi Here is a batch script that can get your (LAN ,Public) (IP) and MAC Addresses Code: [Select]@echo off Title Get (LAN ,Public) (IP) and MAC Addresses by Hackoo 2017 mode con cols=80 lines=5 & Color 9E echo( & echo( echo Please Wait a While ... Searching for (LAN ,Public)(IP) and MAC addresses ... Set "LogFile=%~dp0%~n0.txt" @for /f "delims=[] tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do ( set "LAN_IP=%%a" ) for /f "tokens=2 delims=: " %%A in ( 'nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"' ) Do set ExtIP=%%A @For /f %%a in ('getmac /NH /FO Table') do ( @For /f %%b in ('echo %%a') do ( If /I NOT "%%b"=="N/A" ( Set "MY_MAC=%%b" ) ) ) Cls echo( echo My Private LAN IP : %LAN_IP% echo My External Public IP : %ExtIP% echo MAC Addres : %MY_MAC% ( echo My Private LAN IP : %LAN_IP% echo My External Public IP : %ExtIP% echo MAC Address : %MY_MAC% )>"%LogFile%" Timeout /T 5 /NoBreak>nul Start "" "%LogFile%" |
|