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
|