Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

How can I use the MAC address to figure out the IP address?


  • Please log in to reply
8 replies to this topic

#1 wmweis45

wmweis45

  •  Avatar image
  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:12:50 AM

Posted 07 April 2024 - 04:51 PM

I am working with a Shelly Plug and I am curious how I can discern the IP address? The Shelly app tells me what the MAC address is, and if I configure the WiFi for DHCP I have to look at my router to figure out the IP address. Once I have it, I can ping the address and AFTER that I can use arp -a to see it in the list. But unless I ping the address, arp does not list it. This is not a big problem unless you take this Shelly Plug into a public place (like a hospital) where you do not have the ability to look at the router tables.

 

So, from just a MAC address how can you get the IP address? (Without installing additional tools if possible)



BC AdBot (Login to Remove)

 


#2 Pkshadow

Pkshadow

  •  Avatar image
  • BC Advisor
  • 12,972 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:On the Brow of the Hill, West Coast, Canada
  • Local time:10:50 PM

Posted 07 April 2024 - 05:34 PM

More info is needed as no idea what you are using.

 

https://www.google.com/search?client=firefox-b-d&q=How+can+I+use+the+MAC+address+to+figure+out+the+IP+address


" mosquitoes really wake up everyday and choose violence "   — dalia (@_dalia7)
www.cnn.com/2020/07/23/health/mosquitoes-attraction-humans-future-wellness-scn/index.html
 

I-7 ASUS ROG Rampage II Extreme  / ASUS TUF Gaming F17 / I-7 4770K ASUS ROG Maximus VI Extreme


#3 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 AM

Posted 07 April 2024 - 07:14 PM

The arp table is a good start

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#4 Secret-Squirrel

Secret-Squirrel

  •  Avatar image
  • Members
  • 344 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United Kingdom
  • Local time:06:50 AM

Posted 08 April 2024 - 02:34 AM

So, from just a MAC address how can you get the IP address?

You can't. A MAC address is globally unique, hard-coded into the device's network adapter, and never changes. However, if you look in the "Discovered devices" section of the Shelly app it should show you the device's assigned IP address.
 



#5 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 AM

Posted 08 April 2024 - 06:07 AM

So, from just a MAC address how can you get the IP address?

You can't. A MAC address is globally unique, hard-coded into the device's network adapter, and never changes. However, if you look in the "Discovered devices" section of the Shelly app it should show you the device's assigned IP address.
 

You can via the arp table cache.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#6 Secret-Squirrel

Secret-Squirrel

  •  Avatar image
  • Members
  • 344 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United Kingdom
  • Local time:06:50 AM

Posted 08 April 2024 - 12:39 PM

You can via the arp table cache.

 

Yes, I know you can, and so does the original poster. As he mentioned in his first post, it's not possible to use ARP when connected to a public network like a hospital - have a proper read of post #1.

 

My understanding of the OP's question is whether it's possible to reveal the IP address just by looking at a MAC address - and the answer is still "you can't".



#7 svim

svim

  •  Avatar image
  • Members
  • 1,181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:50 AM

Posted 08 April 2024 - 03:15 PM

You're trying to find a solution to a problem by using two different networking aspects. So essentially what you're trying to do isn't a possibility.

 

Your Shelly plug has an Ethernet port, a component that has a fixed, assigned MAC address. It's that MAC address that other networking devices might use to identify the Shelly plug, at a hardware level. Your home router is what manages and maintains your home network, including assigning IP addresses to the other devices connected to it. DHCP is a software matter.

It's your router that's using the MAC address as an identifier of your Shelly plug and giving whatever unique IP address to merge with your home network. So your plug's MAC is its identifier, it's whichever router you're connecting it to that assigns it an IP address.



#8 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 AM

Posted 08 April 2024 - 03:35 PM

Any machine on any network can pull the arp cache and determine what machine by mac and ip tried to communicate to that machine.

Your home router may assign ip addresses to devices.

But let's say machine with ip 10.0.0.2 pings a machine with 10.0.0.4 both machines will have each other's mac addresses in the arp cache.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#9 desertitguy

desertitguy

  •  Avatar image
  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:10:50 PM

Posted 09 April 2024 - 10:25 AM

Without additional tools? That's a tough one. The arp -a command only show's you what already exists in that devices cache. Which, if the device you're trying to find has never communicated with that device you're on, that device wouldn't be in it's cache. That's why only devices you have sent a PING request to are in your arp cache. To find IP Addresses associated with MAC addresses, you need a scanning/discovery tool like Angry IP Scanner (https://angryip.org/) or Advanced IP Scanner (https://www.advanced-ip-scanner.com/). Those tools are free, don't need to be installed to use, and will scan the network for any devices then show their MAC Address, IP Address, along with any associated data like Manufacturer, Hostname, etc. 

 

Otherwise, the long way is to lookup the OUI. The first half of every MAC Address is manufacturer specific. Enter the MAC Address (or MAC OUI) into any MAC Lookup website (just google it, they're everywhere) and it'll tell you the manufacturer associated with that MAC Address. From there you should be able to guess what device that it. You can also look at your router's MAC Table, ARP Table, or Routing Table. But the easiest way is to just run a tool like Angry IP Scanner or Advanced IP Scanner. They're free, portable, and will give you all the info you're looking for.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users