PC Review


Reply
Thread Tools Rate Thread

How to get MAC Address by Pinging IP or Computer Name

 
 
Saine
Guest
Posts: n/a
 
      15th Jun 2004
Hey Friends,

Inside of a network (LAN) is it possible to get the MAC
address, by pinging any computer (IP or Name). I am using
the windows 2000.

Thanks and regards,

Saine

 
Reply With Quote
 
 
 
 
Peter Forster [MVP]
Guest
Posts: n/a
 
      15th Jun 2004
Hello Saine!

<(E-Mail Removed)> schrieb/wrote:
> Inside of a network (LAN) is it possible to get the MAC
> address, by pinging any computer (IP or Name). I am using
> the windows 2000.


If you ping the computer you can find the MAC address in the arp cache.

Open a cmd and put in: arp -a

With the free GFI Security Scanner you can also scan the IP-Adress.
http://www.gfi.com/lannetscan/

--
Peter Forster
MVP - Windows Server Management
Austria
 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      15th Jun 2004
On Tue, 15 Jun 2004 01:09:44 -0700, "Saine"
<(E-Mail Removed)> wrote:

>Hey Friends,
>
>Inside of a network (LAN) is it possible to get the MAC
>address, by pinging any computer (IP or Name). I am using
>the windows 2000.
>
>Thanks and regards,
>
>Saine


Yes.

See tip 7391 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
Saine
Guest
Posts: n/a
 
      15th Jun 2004
Yes Friend,

What ever information i got from there i mad a batch file
(IPMAC.BAT) and whenever i run that (IPMAC.BAT)i got this
this text "Syntax call IPMAC IP MAC" but it does not give
me any other info of any other system's IP, MAC or
Hostname.

The info whatever i did put in that batch file you can
see written downside:

@echo off
if {%2}=={} goto noP2
if {%1}=={} goto noP1
setlocal
for /f "Tokens=2 Delims=[]" %%i in ('ping -n 1 "%
computername%"') do set IP=%%i
if not defined IP set IP=n.o.n.e&set MAC=No-IP&goto :end
for /f "Skip=10 Tokens=1* Delims=:" %%i in
('ipconfig /all') do set p1=#%%i&set p2=#%%j&call arse
if not defined MAC set MAC=No-MAC
:end
endlocal&set %1=%IP%&set %2=%MAC%
goto :EOF
:noP2
if {%1}=={} goto noP1
set %1=n.o.p.2
:noP1
@echo Syntax call IPMAC IP MAC
goto :EOF
arse
if "%p1%" EQU "#" goto :EOF
set wrk=%p1:Physical Address=%
if "%p1%" NEQ "%wrk%" set PA=%p2:~2%&goto :EOF
set wrk=%p1:IP Address=%
if "%p1%" EQU "%wrk%" goto :EOF
set WIP=%p2:~2%
if /i "%IP%" NEQ "%WIP%" goto :EOF
set MAC=%PA%









>-----Original Message-----
>On Tue, 15 Jun 2004 01:09:44 -0700, "Saine"
><(E-Mail Removed)> wrote:
>
>>Hey Friends,
>>
>>Inside of a network (LAN) is it possible to get the MAC
>>address, by pinging any computer (IP or Name). I am

using
>>the windows 2000.
>>
>>Thanks and regards,
>>
>>Saine

>
>Yes.
>
>See tip 7391 in the 'Tips & Tricks' at

http://www.jsiinc.com
>
>Jerold Schulman
>Windows: General MVP
>JSI, Inc.
>http://www.jsiinc.com
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
keyboard MAC address, mouse MAC address raymondvillain Windows Vista Hardware 3 26th May 2008 05:01 PM
Strange Problem with Computer Name Pinging mcp6453 Windows XP Networking 5 30th Oct 2007 12:59 PM
Is there a way to synchronize favorites between 2 computers? i.e. copy any favorites on computer A but not computer B to computer B and any on computer B but not computer A to computer A? Huck Microsoft Outlook Contacts 1 17th Sep 2006 10:54 AM
error pinging any pc (but can get dhcp address from router) Zebadunc Windows XP Work Remotely 3 9th Jun 2006 05:20 PM
Re: Pinging Host Names as opposed to pinging FQDNs Herb Martin Microsoft Windows 2000 DNS 3 11th Aug 2003 05:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.