M
moneybhai
guys is there any way of converting IP address to mac address or vice
versa..............
versa..............
moneybhai said:guys is there any way of converting IP address to mac address or vice
versa..............
guys is there any way of converting IP address to mac address or vice
versa..............
Roedy said:I doubt it. Other people's MAC addresses are none of your business.
depends on the situation...
I think in an intranet you can as the DHCP server to resolve a mac
address to an IP.
Roedy said:I doubt it. Other people's MAC addresses are none of your business.
I doubt it. Other people's MAC addresses are none of your business.
It requires some very low level bit twiddling and root/admin privs to send
your own link layer packets. I doubt you'll be able to do it in java.
Eric said: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.
Arne said: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.
Eric said: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!"
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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.