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
9
votes
3 answers

What is the difference between a physical address and MAC address in networking?

Somewhere I have read that both physical address and MAC address are the same,which is exactly the same attached with the NIC of a machine. And also in some other place I have read that a router is forwarding data packets based on the information…
Anonymous Platypus
  • 1,242
  • 4
  • 18
  • 47
9
votes
3 answers

Convert integer MAC address to string in Javascript

I have a MAC address stored as a raw 48 bit number, and I want to split it up and print it in the standard hex format of xx:xx:xx:xx:xx:xx. For example, the raw number 81952921372024 should become 78:45:c4:26:89:4a. My first attempt was, var suspect…
PherricOxide
  • 15,493
  • 3
  • 28
  • 41
9
votes
1 answer

Is it possible to get the SSID & MAC Address of Currently connected WiFi Network in an App

I am looking for a way to get both the MAC Adress and the SSID of the currently connected WiFi Network in my project. I have used Tony Million's Reachability to decide when the user is on a WiFi network or not and was testing Kenial's NICInfo only…
aDam_Nerd
  • 143
  • 1
  • 1
  • 5
8
votes
4 answers

C/C++ Linux MAC Address of all interfaces

I am using the following code to retrieve all MAC addresses for current computer: ifreq ifr; ifconf ifc; char buf[1024]; int sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); if (sock == -1) { ... }; ifc.ifc_len = sizeof(buf); ifc.ifc_buf = buf; if…
user1173626
  • 153
  • 1
  • 2
  • 8
8
votes
4 answers

Get mac address in Java using getHardwareAddress non-deterministic

I was having a problem to get the mac address of a machine, which was solved in this question using the follow code: Process p = Runtime.getRuntime().exec("getmac /fo csv /nh"); java.io.BufferedReader in = new java.io.BufferedReader(new …
Pedro Dusso
  • 2,100
  • 9
  • 34
  • 64
7
votes
2 answers

Do Android Phones have a MAC address when connected to 3G?

I was wondering if Android phones have a MAC address when connected to the internet over 3G? I'm assuming they do, so I guess my real question is whether or not there is anyway of accessing it? I haven't found anything from looking through the APIs…
user631063
7
votes
1 answer

how can i get hotspot connected devices ip address and MAC address in ios iphone swift?

My requirement is like, I want IP and MAC address of devices which are connected to my iOS device's hotspot. How can I get a list of IP address of those devices? Does Apple allow to get hotspot related information through code.?
gaurgtm
  • 79
  • 1
  • 3
7
votes
2 answers

How to Get MAC address programatically in c# for a windows mobile 6.0 device

How to Get MAC address programatically in c# for a windows mobile 6.0 device? The System.Net.NetworkInformation is not supported in ,net compatc framework 3.5.
Vicky
  • 1,107
  • 2
  • 13
  • 25
7
votes
7 answers

python - getting the MAC address properly in Windows

I'm using Windows 7 and Python 2.6. I would like to get the MAC address of my network interface. I've tried using the wmi module: def get_mac_address(): c = wmi.WMI () for interface in c.Win32_NetworkAdapterConfiguration (IPEnabled=1): …
oridamari
  • 561
  • 7
  • 12
  • 24
7
votes
1 answer

What are the 0 bytes at the end of an Ethernet frame in Wireshark?

after ARP protocol in a frame, there are many 0 bytes. Does anyone know the reason for the existence of these 0 bytes?
Trung Tran
  • 231
  • 1
  • 3
  • 11
7
votes
3 answers

how to spoof MAC address via code

I'm trying to spoof the MAC address of the computer that executes my program. Right now I'm getting the current MAC address of the machine using the 'getmac' command via cmd, then I want to change it via the 'RegistryKey'…
user3402649
  • 121
  • 1
  • 3
  • 15
7
votes
2 answers

Scan all wifi devices near the phone

Company http://renewlondon.com/ have the terminal stations that collect all near by mac addresses Can I via iOS SDK, and Android SDK,do the same thing?
Ulle Tad
  • 345
  • 1
  • 4
  • 15
7
votes
1 answer

Getting the MAC address of the device- when wifi is off

I am finding the MAC address of the Android Device using the following code: WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo info = manager.getConnectionInfo(); String address = info.getMacAddress()); But in…
Gaurav Arora
  • 8,282
  • 21
  • 88
  • 143
7
votes
3 answers

How to get the device name programmatically in iPhone sdk?

i get the device Mac and IP Address. But, don't get the device name. any idea how to get more info if possible like "Network Utility" of device ?
Dhaval
  • 215
  • 2
  • 10
6
votes
1 answer

Why do Android doesn't have a mac address for 3g when iOS does?

I know this maybe a stupid question but maybe I'm just confused with the concept of mac address. As far as I know, each device has its own mac address. For example, a wiFi interface has its own mac address. If all devices has its own mac address,…
Arci
  • 6,647
  • 20
  • 70
  • 98