How to broad cast ping address.......

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Feb 13 01:29:30 CET 2008


En Mon, 11 Feb 2008 23:26:14 -0200, Steve Holden <steve at holdenweb.com>  
escribió:

> 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
>>
>> 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
>>
> 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?

Uh, yes, raw sockets are crippled on XP SP2. There is always  
subprocess.call("ping ...") - not very nice, of course

-- 
Gabriel Genellina




More information about the Python-list mailing list