Arne Vajh?j wrote:
Eric Sosman wrote:
Arne Vajh?j wrote:
Roedy Green wrote:
On Sun, 16 Aug 2009 13:37:49 -0700 (PDT), moneybhai
<manishthe@gmail.com> wrote, quoted or indirectly quoted someone who
said :
guys is there any way of converting IP address to mac address or vice
versa..............
I doubt it. Other .
He did not say somebody elses MAC address.
Not directly, no. But in at least two of the forty-leven
threads he started on this one topic he asked how to do it with
an "aglet." He probably wasn't referring to the thing at the
end of a shoelace, but to a framework and toolkit (possibly
obsolete?) for writing mobile applications that wander all over
the Internet from device to device to device.
... which makes "somebody else's MAC address" a reasonable
supposition, even if unproven.
Well - when I showed code that got IP and MAC of the local
system he asked for code doing the same on 1.4.
It is not obvious to me why an aglet should have more use
of a remote MAC than a local MAC. But given that I don't
know the framework, then that does not tell much.
I don't know it, either.
As to "other people's MAC addresses are none of your
business," I'm not so sure. If the "other people" are on the
same LAN, then their MAC addresses (assuming it's a MAC-ish
LAN) are most necessarily your business: You can't communicate
with them in ignorance of their MAC addresses. In the normal
course of things this knowledge remains in the lower layers of
the protocols and you don't worry about it: You deal in IP
addresses and let the underlying machinery deal with transport.
That machinery cares (or doesn't care!!) about MAC addresses,
but in any event bears the responsibility of getting the packets
from hither to yon and back, by whatever means seem fitting.
It's my guess that the O.P. doesn't want MAC addresses for
communication purposes, since they're not needed at the protocol
levels application programs usually employ. More likely, this
is just Yet Another Software Locker-Downer, someone who thinks
that he can "issue a license" to thus-and-such MAC address and
use it to authenticate. If so, he's deluded: MAC addresses are
neither unique nor immutable. If I get hold of my friend's copy
of his encrypted-by-MAC license, and am on a different LAN, it is
child's play to set my NIC to that same MAC address and use the
license without paying one red cent. So if that's what the O.P.
is after, he's after a will-o'-the-wisp.
"Nur T?uschung ist f?r mich Gewinn!"
That could very well be it.