We help IT Professionals succeed at work.

Find AP Mac address from my connected XP, or Win7 box

Is it possible to find out the mac address of the access point that my XP, or Win7 box is connected to from the wifi connected XP, or wifi connected Win7 box?  I've tried ipconfig/all - no joy there, I thought maybe there is another way, command line syntax, or small 3rd party software.

Simple - I have several access points in my 50 acre lot.  I can find the MAC address from my barcode scanner thru the Summit Client Utility - cool.  

My Mac does this thru, "About This Mac", "More Info...", "AirPort" will tell me the mac address of the AP my mac is logged onto (yeah for mac).
Comment
Watch Question

C:\Users\Amit Khilnaney>arp -a 192.168.1.1

Interface: 192.168.1.2 --- 0xa
  Internet Address      Physical Address      Type
  192.168.1.1           00-1e-xx-xx-xx-26     dynamic

C:\Users\Amit Khilnaney>
arp -a <gateway/router/modem ip address>

Author

Commented:
AmitK,

I did as you suggested & it gave me the mac address of my router, or gateway - cool/thanks, but you're not understanding my question.  I want the mac address of the AP (access point) my laptop (be it XP, or Win7, or even if you know how on only one of those (XP/Win7) - I'd be happy), anyway, I want the mac address of the access point to whom my laptop's wireless nic is connected up to/with.

I know the Mac address of all my access points, I want this info so I can know in what areas of my lot are serviced by which antennas.  I can log onto the AP and it will show in the "connected stations" area what mac addresses are associated to the AP, but this would be a pain to log onto each one (access point) from out in the lot/open 50 acre parking area.

So, again, do you know of a way, as mentioned above - mac provides this, to know the mac address of the access point to whom my XP laptop is connected up with?

Thanks for replying!

Author

Commented:
Ok folks, simple question, I know the access point mac addresses.  I just need to know which one my XP OS laptop is connected to - how to do??
Check this...


 
http://www.paessler.com/router_monitoring

Open in new window

Author

Commented:
I'm gonna cry.

Let me try again, Each Access point up in my place of business has a MAC address.  Generally I use the last 4 to ID which AP is which.  For Instance, 09u4 is the East AP, 0945 is North AP, and 0948 is South AP, and 0952 is West AP.  If I stand in the middle of the 10 acre lot and am connected with my laptop (my Mac anyway) I can go to upper left "About This Mac", "More Info...", AirPort & see that my mac is communicating with 0952, so I'm connected to the West AP - Done - like to know for AP placement.  Now, how can I do this from say XP, or Win7 laptops/workstations?
you tried ipconfig/all..

That will give you the ip address (not mac address) of all the interfaces whether it is Ethernet or wireless.

Note down the ip address of gateway of wireless connection..

arp -a <ip-address> of gateway....

Earlier when i mentioned the arp -a 192.168.1.1. I didn't literally mean that ip address.
If you prefer a simple way to identify a wireless AP. Then login to each AP and change the SSID so that you can identify from PC/Laptop/whatever device. What AP your device is connecting to..

Author

Commented:
AmitK - I appreciate your reply.  I'm familiar with ipconfig/all.  Yes that certainly gives mac addresses (the macs of the wired & wireless nics of the XP/Win7/?), however I don't think it gives the mac address of the AP the wireless side of the Win device (laptop) is connected to, but I'll have to fire up my Win laptop and go out and try so I can confirm your suggestion, but at this tapping, I don't think it (ipconfig/all) gives the mac address of the AP the Win laptop is connected up with, but I'll report back!
ipconfig/all will not give mac address..

Read this again


Are you reading this....


you tried ipconfig/all..

That will give you the ip address (not mac address) of all the interfaces whether it is Ethernet or wireless.

Note down the ip address of gateway of wireless connection..

arp -a <ip-address> of gateway....

Earlier when i mentioned the arp -a 192.168.1.1. I didn't literally mean that ip address.
Step by Step

1. Open command prompt
2. ipconfig /all
3. Note down the ip address of the gateway for wifi adaptor (interface)
4. arp -a <ip address of gateway>

------------------------------------------------

Other way

1. Login to each AP
2. Change the SSID
3. Configure each ssid on your laptop ie.. wireless connection
4. Hover mouse over wireless conn in taskbar. you will get to know the ssid it is connected to..

You have to note down the gateway address under wireless connection...

as highlighted in yellow in image...

 gateway

Author

Commented:
Please know I'm still seeking an answer here.  I'm simply buying time here with this post.
CERTIFIED EXPERT
Top Expert 2014

Commented:
@jayindy1 - I know what you mean :-)

Install InSSIDer from Metageek's website.  That will give you the MAC address of the AP you're connecting to.InSSIDer AP MAC Detail
CERTIFIED EXPERT

Commented:
John Gates, CISSPSecurity Professional
CERTIFIED EXPERT

Commented:
If you do ipconfig /all and get the router IP address then do:


arp -a and match the ip to the mac address listed.  It's really that easy!

hope this helps!
-D-
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
Open a command prompt and run

netsh wlan show interfaces

(It's the equivalent of ipconfig for the Access Point you're connected to.)

Otherwise you can find it in the arp table (from the same command prompt)

arp -a

It's not as neat as you'll need to recognise the device from the last 4 of the MAC (and this is dependent on the AP having its own IP address)

The confusion here with previous ipconfig suggestions is either there's an assumption that the router is the AP - which it isn't in your environment - or people haven't realised that the AP is transparent to ipconfig and simply doesn't appear the command simply returns the gateway details from the router.
Rich RumbleSecurity Samurai
CERTIFIED EXPERT
Top Expert 2006

Commented:
You want it GUI rather than CLI? arp -a is correct for CLI, and unless each AP is named differently, east west... then there is no native windows gui that allows you to see the AP's. Some wifi drivers supply gui's that do however, or like mentioned above there are 3rd parties.
-richcmd
CERTIFIED EXPERT
Top Expert 2014

Commented:
arp -a is not correct unless the client knows the IP of the AP first.   If the client talks to the router via a separate AP the MAC address of the AP will not be in the ARP table unless you talk directly to the AP first.  

The Netsh wlan show interfaces  command won't show the AP MAC either.  You need to use the netsh wlan show networks mode=bssid command instead.
CERTIFIED EXPERT

Commented:
Besides the free/open source inSSIDer recommended by craigbeck in http:#a39758140, (and other GUIs), there's also Passmark's WirelessMon,which is shareware (30-day free trial). As you can see, it also shows the MAC addresses of APs in the area, as well as indicating to which one you're connected.Passmark's WirelessMon (click for larger)
If you have an android phone and want to make it pretty easy...

https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer&hl=en

Works great and really helps with a lot of Wifi issues..

I know you are asking for Windows.. but this is another option.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
NetSetMan or Access Connections would both work. Connection managers that can get MAC addresses of AP. Unlike inSSIDer, they are free to download, but NetSetMan charges for non commercial use. Some connection utilities that manufactures include also work for this purpose.
CERTIFIED EXPERT

Commented:
> Unlike inSSIDer, they are free to download
Well, inSSIDer is free to download. It's even open source, so you can download its source code and modify it if you want.

Author

Commented:
Praise the Lord!  I think MASQUERAID gets the point winning cigar w/ "netsh wlan show interfaces"!  Give me a few more joy days of confirming the syntax, but for the moment I know the W7 box below is connected to an air bridged outdoor Unifi & the Unifi I know ends in "45:44" which the basic serv set ID shows.

craigbeck: "netsh wlan show networks mode=bssid" also works, but above does show mac address of the radio in a condensed viewing - as mentioned, I'll continue to test on more Win boxes & laptops before I accept the solution.

No 3rd party software needed.

My AP is not a router, nor is my router an AP.

"netsh wlan show interfaces"
CERTIFIED EXPERT
Top Expert 2014

Commented:
I eat my words.  Indeed Masqueraid is correct.  In my defence I couldn't remember if it did while I was tucked up in bed so I went to TechNet to check, and it said this...

Shows the wireless interfaces configured on the computer.
Displayed information includes:

The number of interfaces on the computer
Name (for example, "Wireless Network Connection")
Description (for example, Broadcom 802.11g Network Adapter)
GUID (hexadecimal string)
Interface state (connected or disconnected)
I always use the mode switch but I suppose that's just habit.

Full marks to that man :-)
Top Expert 2015

Commented:
While 99% of cases gateway is same wifi and dhcp etc, there are common multi-AP scenarios where that cannot be true.
I'd suggest network diagnostic  tool like inssider (if you google some enterprise called metageek produces it) that is certain to show AP MAC, and not gateway MAC
Probably it is possible to figure same thing out with netsh.

Author

Commented:
"Netsh wlan show interfaces" at DOS box did the trick!!
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
Jayindie1, why did Craig get all the points for this one? Was there a problem with my suggestion?
CERTIFIED EXPERT
Top Expert 2014

Commented:
I agree, my answer was an assist.  Masqueraid's answer was correct.

Author

Commented:
Masqueraid, I meant to give you the points - I scanned up to the Posted on 2014-01-05 at 19:35:10ID: 39758235 & w/o looking at the name I saw "Netsh wlan show interfaces" and accepted w/o looking at the name.  I did request a point correction to the management, but have not yet heard from them.  Can I correct the point assignment??

This is the correct point assignment post I wanted to award the 500 points to -
Posted on 2014-01-05 at 18:53:57ID: 39758197
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
Fortunately I know someone who can reset the question :)
Have another go!

[Note:  Original assignment http:Q_27429843.html#a39758235 500 A]

Author

Commented:
Thanks!!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.