How to broad cast ping address.......
Steve Holden
steve at holdenweb.com
Mon Feb 11 20:26:14 EST 2008
Gabriel Genellina wrote:
> En Mon, 11 Feb 2008 13:31:56 -0200, Manikandan R <mani.agape at gmail.com>
> escribi�:
>
>> I am working in Python scripting. I an need to find out all the
>> device
>> connected in the network. Just I planned to broad cast the ping address
>> and
>> use the ARP table to get the IP address of the system in the network.
>> As, I
>> am working in Win XP i am not able to use ping -b command to broad cast.
>
> The simplest approach is to enumerate and ping each and every address in
> your subnet and wait for the response, but consider that some hosts may
> have been configured to not answer (and assuming you don't have a /8
> network...)
> There is an ICMP library in the Python cookbook
> http://aspn.activestate.com/ASPN/Python/Cookbook and you can search the
> Package Index too: http://pypi.python.org
>
Don't I remember Microsoft withdrawing access to the raw packet driver
on Windows XP, or was thing something they decided to ruin in Vaster?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list