Does anyone have any code that returns a remote MAC address without using the SendARP API? ARP packets won't go out over the Internet so I need some other form. Maybe something with ICMP ?? Does anyone have any ideas on how to do this or any examples?
Announcement
Collapse
No announcement yet.
Remote MAC without using SendARP
Collapse
X
-
I have a software package that I wrote that connects to an appliance, and uses its MAC for licensing purposes. I recently had a customer who has a need to run the software off-site across the Internet. He already tried this, but the license is invalid since there is no MAC. I wanted to see about adding a routine to get that information across the Internet.
I think that some routers allow it for internal use between 2 subnets, but that is a different case than what I am looking into. I guess if I can't find a way to do this, I will need to update my documentation to specify that the software must be run from the same subnet as the appliance.
Comment
-
Hmm, could you give something on the local LAN an LAA that matches the remote MAC?
(added) Thinking about this, I presume in a normal deployment, you get the management PC to do an arp resolution on the device's IP and get the MAC to check it's on the list of licensed devices. When you try this for the remote device, do you get any response from the arp resolution at all or does it just error? I'm just wondering if you'd get the router's mac address.Last edited by Neil Croft; 30 Jun 2009, 11:05 AM.Neil Croft (cissp)
Comment
-
There are no atheists in a fox hole or the morning of a math test.
If my flag offends you, I'll help you pack.
Comment
-
Originally posted by Mel Bishop View Post
Comment
-
Originally posted by Neil Croft View PostLicense on IP address instead? No, don't tell me. They're using DHCP so it's changeable or the device can't report it's IP address.
Comment
-
WMI seems like a possibility. See http://www.winforums.com/showthread.php?t=8842 for an VBScript example.
Comment
-
Ok, I'll have to investigate the WMI thing at a later date. The VB Script accesses a lot of object calls, which are meaningless to me since I'll be doing it via the Windows API (if at all)
Thanks for the suggestions guys, I'll look into this. It is only one client, so I may have to just have him run his ap at the site and then receive the data remotely.
Comment
Comment