MMA wrote:
Hi All,
Any ideas how can I get the MAC address of a PC outside my lan given the IP.
I tried using iphlpapi.dll to call sendARP but dosen't work for outside my
lan.
Thanks in advance
What would you do with the MAC address? Aside from that, are you really
expecting to see the MAC address of the computer that's accessing your
site/app? Because if they're using NAT you won't get to that. Concider
the following:
pc(192.168.0.1)-->router(external ip: 10.10.1.1)-->| WEB/VPN/whatever
|-->your router-->your server/pc
Now your server will only see the 10.10.1.1 address so when you're
actually able to get the associated MAC address, you'll only get the MAC
address of the router, not the PC.
ps. I know 10.10.x.x is an internal range, I just used it for
demonstrational purposes ;)
--
Rinze van Huizen
C-Services Holland b.v