Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: How can I find a MAC address from aremote IP ?

by Malkavian (Friar)
on Mar 30, 2001 at 20:05 UTC ( [id://68410]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I find a MAC address from aremote IP ?
in thread How can I find a MAC address from aremote IP ?

Hmm.. You sure arp works on a distant remote IP?
From memory, it's only local subnet.
Plus, I don't think you get a valid MAC address from a PPP link either.
  • Comment on Re: Re: How can I find a MAC address from aremote IP ?

Replies are listed 'Best First'.
(tye)Re: How can I find a MAC address from aremote IP ?
by tye (Sage) on Mar 30, 2001 at 22:26 UTC

    Nothing is going to tell you the MAC address of something that is not within your local broadcast domain! You'd have to get some code to run in the local broadcast domain of the remote IP address and have it forward you the information.

    And PPP links don't have MAC addresses. A MAC address is an Ethernet thing and you don't run PPP over Ethernet.

    So I would assume that the original question was asking for a MAC address of an Ethernet (and non-PPP) adapter that was not local to the computer but that was in the local broadcast domain -- nothing else makes much sense. So ARP is the most logical answer.

            - tye (but my friends call me "Tye")
      Actually.. MAC addresses are not an Ethernet thing. Token Ring uses them too... The reason Remote networks are usually harder to get MAC address for could be because of Hardware Address Translation. It all depends on how the routers are set up.
Re: Re: Re: How can I find a MAC address from aremote IP ?
by arhuman (Vicar) on Mar 30, 2001 at 20:14 UTC
    Oops ! You're right arp will only work with local IP addresses...
    (I always forget to mention...)

    "Only Bad Coders Badly Code In Perl" (OBC2IP)
Re: Re: Re: How can I find a MAC address from aremote IP ?
by IlyaM (Parson) on Jan 08, 2003 at 16:06 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://68410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-18 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found