|
|
| Author |
Message |
jinjin FemaleFirst Guru

Joined: 11 Oct 2006 Posts: 85109
|
Posted: Fri Sep 21, 2007 5:23 pm Post subject: Get MAC Address |
|
|
I wish to establish a Wake On LAN command console at home. The Magic Packet Wake On LAN application (that I plan to use) requires both the IP and MAC Address of the destination computer to wake up.
So I have been wondering if there is an alternative to accessing the console of each of my machines to identify the MAC address of the network interface.
Ideally, I wish to be able to query each computer remotely get their MAC address. The MAC address should be stored in the IP packet, so I think it is possible for a specially designed network application to display it.
What are your recommendations on freeware or shareware networking applications that can perform this task? |
|
| Back to top |
|
 |
monosodium FemaleFirst Guru

Joined: 21 Oct 2005 Posts: 5766 Location: In UR base snifin all UR pantys
|
Posted: Fri Sep 21, 2007 9:38 pm Post subject: |
|
|
If I remember rightly you have a router - you can get the MAC addresses out of that although it may not tell you which machine is which depending on how your network is configured.
Alternatively you can use the windows command line utilities PING and ARP to get them.
PING will translate the machine name to an IP address.
| Code: |
>ping oldpc
Pinging oldpc [192.168.1.16] with 32 bytes of data:
Reply from 192.168.1.16: bytes=32 time<1ms TTL=128
Reply from 192.168.1.16: bytes=32 time<1ms TTL=128
Reply from 192.168.1.16: bytes=32 time<1ms TTL=128
Reply from 192.168.1.16: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.16:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms |
ARP (with the -a switch) shows you the MAC address for a given IP address. So using the ip address from the ping...
| Code: |
>arp 192.168.1.16 -a
Interface: 192.168.1.6 --- 0x2
Internet Address Physical Address Type
192.168.1.16 xx-xx-xx-xx-xx-xx dynamic |
If you leave out the IP address for the ARP command it will show all the IP's and MAC addresses that your machine has contacted (recently-ish). |
|
| Back to top |
|
 |
jinjin FemaleFirst Guru

Joined: 11 Oct 2006 Posts: 85109
|
Posted: Sun Sep 23, 2007 4:16 am Post subject: |
|
|
| Thanks. arp will do just fine. |
|
| Back to top |
|
 |
|