2/13 In NT or XP, is there a way to display the IP address of a remote
machine when the remote machine is pinging my machine? Thanks.
\_ netstat?
\- netstat is ridiculous for this. hammer. nail. bad. wrong.
i believe tcpdump runs on msftware:
tcpdump -i <if> 'icmp[0] = 8 or icmp[0] = 0'
--mr. tcpdump
\_ Or ethereal
\_ I think the ping connection is too short-lived for netstat to
catch. Anyway, what I'm trying to do is to have a way to find
out the IP address of the remote XP machine after it changes due
to rebooting. It always takes my local machine a long time to
realize the new IP address. So I was thinking that I can add
a batch file to the Startup menu on the remote machine to ping
the local machine. Then I could watch for the ping request and
find its IP address. Is there another way to do what I want? Is
there a way to tell my local NT/XP machine to clear its cached
hostname->IP mapping and search for the new IP again? Thanks in
advance.
\- do you know what arp/rarp is? what you are doing sounds weird
and i'm not exactly sure what the point of it all is but i
answered your first Q and you might look at arp if apropriate.
i dont know anything about msftware.
\_ windows has the 'arp' command which the person above is
talking about. it has an option to clear the whole cache or
delete individual entries. are you using wins and pdc/bdc?
\_ To the OP, if you want help, please tell us what you're trying to
do. Don't just ask how to do some lower level task, because you
may be barking up the wrong tree. |