1.

Solve : Real MAC/IP address??

Answer»

Hello

I have the following in Command Prompt under IPCONFIG /ALL:

Ethernet adapter Local Area Connection:
Physical Address. . . .: D0-27-**-**-**-**

Wireless LAN adapter Local Area Connection* 2:
Physical Address. . . .: 5A-D1-**-**-**-**

Wireless LAN adapter Local Area Connection* 3:
Physical Address. . . .: 1A-D1-**-**-**-**

Likewise, with my IP address. I see:

Wireless LAN adapter Wireless Network Connection:
IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)

That is not my IP address at all.

Which command lines do I require, please, to identify my real MAC address (physical address), the unique address for my PC, and IP address?

Thank you.

192.168.1.2 is the IP of your machine on the local network, if you want your public IP address you need to use an external website such as http://ipchicken.com/ or http://icanhazip.com/

Are those MAC ADDRESSES given next to "Physical Address" incorrect?Hello

Thanks for your reply.

The addresses I copied from CMD, but I always thought that a computer only had one MAC address?

Each network adaptor will have its own MAC address - The MAC identifies the network hardware rather than the machine itself. What are you TRYING to achieve?Quote

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.

The purpose of the MAC address is to uniquely identify every node (e.g., workstations and PRINTERS) on a network. Every adapter has a unique MAC address. Even two identical models from the same manufacturer will have distinct MAC addresses.

Note: You may also hear people refer to the MAC address as the physical address, the hardware address, or the adapter address.

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%"


Discussion

No Comment Found