Link to home
Start Free TrialLog in
Avatar of ellandrd
ellandrdFlag for Ireland

asked on

get computer name based on mac address

how can i get computer name based on mac address?
Avatar of Brian Pierce
Brian Pierce
Flag of United Kingdom of Great Britain and Northern Ireland image

I can't think why you would ever need to do this. Do you have a specific reason in mind?

If you are talking about the local PC then ipconfig/all will show the MAC address, IP Address and Hostname and a load of other stuff as well

The problem with MAC to Hostname is there is no direct way of doing. The MAC is mapped to the IP address with the ARP protocol so for PCs on the local subnet the ARP cache is going to contain the MAC and IP of machines that your PC has communictates with recently. you can view this with ARP -a.

But there is no hostname info in ARP. Also this is only applicable to the local subnet, so there is no cached MAC info about remote machines.

If there is cached MAC and IP information about a machine in your local ARP Cache then, providing you have a reverse lookup zone set up in DNS, you could do a reverse lookup on the IP address and get the Hostname. This two stage process is very clumbersome and will not work for non-local machines.

I dont know of any utilities that could provide such information in an easier way.
Perhaps someone else does?
Avatar of ellandrd

ASKER

i had a few users trying to connect to my wireless network.  i have 1 already kicked off but i have one unknown user.

i would just kickoff all users but then i have to go and add them all one by one on again and i have 30 users... - this is a days job that im not wanting to spend doing today so finding out the computer name based on mac address i can tell who's who, as on my network i have named all computers in the same format....
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you know the MACs of the allowed computers why not set up MAC filtering on the wireless access point to prohibit other users.
Thanks for selecting my answer....

MAC filtering is a good basic plan on an AP though as KCTS has suggested, I tend to prefer leaving the AP fairly open and putting a firewall in front of it to authenticate the users etc. but as always depends what you need / want.

Steve