Networking Forums

Networking Forums > Computer Networking > Windows Networking > Retrieving the MAC address of remote machine?

Reply
Thread Tools Display Modes

Retrieving the MAC address of remote machine?

 
 
Rajesh Gupta
Guest
Posts: n/a

 
      07-07-2004, 05:18 PM
How can i retrieve the MAC address of remote machine? I know the IP address.

Is there anyway of getting the MAC address programatically from the ARp
table?

Thanks in advance.
Rajesh


 
Reply With Quote
 
 
 
 
Miha Pihler
Guest
Posts: n/a

 
      07-07-2004, 05:59 PM
Hi Rajash,

if the client is on your LAN (no routers - hops - in between you and the
client) first ping the client then check ARP -a. Look for the IP you pinged
and next to it should be ARP. If there is a hop (router, FW, ...) between
you and the client you have no option to see the MAC address.

Mike

"Rajesh Gupta" <(E-Mail Removed)> wrote in message
news:%23X9$(E-Mail Removed)...
> How can i retrieve the MAC address of remote machine? I know the IP
> address.
>
> Is there anyway of getting the MAC address programatically from the ARp
> table?
>
> Thanks in advance.
> Rajesh
>
>



 
Reply With Quote
 
John R Buchan
Guest
Posts: n/a

 
      07-08-2004, 12:16 AM
Unless both computers have NetBIOS installed (e.g. all pre-W2k MS
systems). Running the following command from a DOS/CMD shell will give
you a list of registered NetBIOS names and the MAC address of the remote
system.

nbtstat -A 192.168.1.1
nbtstat -a mypc

<replace the sample IP or computername with the appropriate value.>


If the remote system obtained it's IP from a DHCP server, you should be
able to retrieve the MAC from the DHCP server's database.

There are a number of other possibilities, but, as Rajash indicated, the
common ones require access to a device on the same segment as the system
whose MAC address you're trying to retrieve (since MACs aren't normally
used for network functions across segments).


On Wed, 7 Jul 2004 19:59:01 +0200, "Miha Pihler"
<mihap-(E-Mail Removed)> wrote:

>Hi Rajash,
>
>if the client is on your LAN (no routers - hops - in between you and the
>client) first ping the client then check ARP -a. Look for the IP you pinged
>and next to it should be ARP. If there is a hop (router, FW, ...) between
>you and the client you have no option to see the MAC address.
>
>Mike
>
>"Rajesh Gupta" <(E-Mail Removed)> wrote in message
>news:%23X9$(E-Mail Removed)...
>> How can i retrieve the MAC address of remote machine? I know the IP
>> address.
>>
>> Is there anyway of getting the MAC address programatically from the ARp
>> table?
>>
>> Thanks in advance.
>> Rajesh
>>
>>

>


--
Note, I seldom respond to email questions. Please keep discussions in
the news group, so everyone can benefit from them (including me <g>).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
John R Buchan ........................ jrb-tech(at)unknownegg(dot)org
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving WAN IP address directly from a Linksys WRT54G Broadband Router Mike Wireless Internet 0 02-01-2007 01:49 PM
Retrieving WAN IP address directly from a Linksys WRT64G Broadband Router Mike Wireless Internet 2 10-17-2006 03:37 AM
Run an X app on remote machine s Linux Networking 3 05-11-2004 10:57 PM
Can't ping remote machine using its name Xitch14 Windows Networking 1 01-20-2004 04:53 PM
vnc - how to connect from remote machine outside of LAN gurka Linux Networking 2 11-10-2003 02:01 PM



1 2 3 4 5 6 7 8 9 10 11