Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMD - get MAC address of iPhone

Im trying to get the MAC address of my iPhone from my windows machine.

 GETMAC /s 10.30.114.14

And it returns:

ERROR: The RPC server is unavailable

But if I try to get a MAC address of any other device (laptops and what not), I get a good address within milliseconds.

So Im asking: Is there a way to get a MAC address of an iDevice from CMD?

**I know I can look at the device settings, but that is realy not what I'm after.

like image 423
Amit Avatar asked Dec 01 '25 06:12

Amit


1 Answers

ping it and then grab the MAC from the arp cache:

@echo off

set IP=10.30.114.14
ping -n 1 %IP% >nul
for /f "tokens=2" %%a in ('arp -a ^| find "%IP%"') do set MAC=%%a

echo MAC: %MAC%
pause
like image 69
wOxxOm Avatar answered Dec 02 '25 19:12

wOxxOm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!