Questions tagged [mac-address]

A Media Access Control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment.

A MAC address is a 48 bit identifier assigned to every device connected to a network. They are normally written as 6 octets displayed as hexadecimal digits, for example 08:01:27:0E:25:B8. The first 3 octets identify the manufacturer, the last 3 are to ensure that each address for that manufacturer is unique.

MAC addresses are used for numerous network technologies and most IEEE 802 network technologies, including Ethernet. Logically, MAC addresses are used in the Media Access Control protocol sub-layer of the OSI reference model.

1056 questions
16
votes
3 answers

Why do we need MAC addresses when you have local IP addresses

From what I understood, MAC addresses are physical addresses only used in LAN to identify a device. However, local IP addresses can also identify a device on a local network as it is unique. So why do we bother to include MAC addresses when we could…
Segfolt
  • 228
  • 2
  • 6
16
votes
7 answers

Getting a unique hardware ID with Python

I have a process that requires me to identify different machines, and I'm not sure what's the best way to do it. I do not want to save that ID on a text file or something, but I want to generate it from hardware every time I need it (in case the…
TzurEl
  • 792
  • 3
  • 9
  • 15
16
votes
5 answers

get the mac address of the current machine with node.js using getmac

I am working on this question. Now I am trying to use getmac to get the mac address of the current machine with node.js. I followed the installation instructions. But when I run this code: require('getmac').getMac(function(err,macAddress){ if…
Bud Wieser
  • 263
  • 1
  • 3
  • 8
16
votes
5 answers

Get a machines MAC address on the local network from its IP in C#

I am trying write a function that takes a single IP address as a parameter and queries that machine on my local network for it's MAC address. I have seen many examples that get the local machine's own MAC address, however none (I've found) that seem…
Gga
  • 4,311
  • 14
  • 39
  • 74
15
votes
4 answers

Get Bluetooth MAC Address via adb

Please help me to retrieve the Bluetooth MAC Address of my Galaxy S3 phone connected via USB port. My device is rooted.
Antonio
  • 1,181
  • 4
  • 15
  • 34
14
votes
7 answers

MAC address with getifaddrs

Is there a way to get interface's MAC address via getifaddrs() ? I already have this, to get IP addresses, but I have kinda missed MAC. Ive tried to look for the information in getifaddrs(), but there is nothing about MAC addresses struct ifaddrs…
shaggy
  • 631
  • 4
  • 11
  • 22
14
votes
1 answer

Get permanent MAC address

Is there an easy way to get the permanent MAC Address using Go?
Simone Romani
  • 415
  • 2
  • 6
  • 20
14
votes
4 answers

How to get the wifi mac address on iPhone in Swift?

Is there a way to get the real Wi-Fi MAC address of the IOS device using Swift language? Code snippet much appreciated! Thanks.
Vali Nagacevschi
  • 152
  • 1
  • 1
  • 7
14
votes
3 answers

Perfect unique_id for device except IMEI,Android_ID,WLAN Mac and Bluetooth address

Objective: I am looking for a way to find out a unique_id for android device. Background: I will use the Id in login request payload and as my app is license based service app the Id should not change under normal circumstances. Existing…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
14
votes
2 answers

Ping or otherwise tell if a device is on the network by MAC in C#

I'm developing a home security application. One thing I'd like to do is automatically turn it off and on based on whether or not I'm at home. I have a phone with Wifi that automatically connects to my network when I'm home. The phone connects…
Aric TenEyck
  • 8,002
  • 1
  • 34
  • 48
13
votes
9 answers

Why can't the server get the client MAC address, like the client IP?

From what I know, all the MAC addresses that the packet gone through are in the packet. This is because that each packet that goes in a certain path, should also be returned in similar path. So, if the router of the server know about the mac address…
stacker
  • 14,641
  • 17
  • 46
  • 74
13
votes
4 answers

Reserved MAC-addresses (some are assigned anyway?)

I'm trying to make a list of all MAC addresses that are reserved, do not exist, should not be used, should only be used locally etc. (Just like the list of reserved IP-addresses on Wikipedia, but for MAC.) Basically I want to loop over all…
user1793963
  • 1,295
  • 2
  • 12
  • 24
13
votes
5 answers

How to ping MAC address in Linux

I want to ping a known MAC address, I tried to use nmap: sudo nmap -sP 192.168.15.1/24 | grep 20:64:32:3F:B1:A9 But in this case its ping all the 255 IP address (from 192.168.15.1 to 192.168.15.255) until get my MAC address, and that take a long…
Linux
  • 325
  • 2
  • 6
  • 17
12
votes
2 answers

Getting client's MAC address on node.js

Is there a way to find client's mac address on Node.js? I have been searching about it and i found node-sigar project but it didn't works because it throws a "cannot find module ./build/Release/sigar" error.
Jorge Ramón
  • 121
  • 1
  • 1
  • 7
12
votes
3 answers

What exactly means iOS networking interface name? what's pdp_ip ? what's ap?

I use following code to print all interface and it's mac address - ( void )interfaceInfo{ int mib[6]; size_t len; char *buf; unsigned char *ptr; struct if_msghdr *ifm; struct sockaddr_dl …
Aladdin
  • 121
  • 1
  • 1
  • 4
1 2
3
70 71