[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: How to broad cast ping address.......

Gabriel Genellina

2/13/2008 12:30:00 AM

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

> Gabriel Genellina wrote:
>> En Mon, 11 Feb 2008 13:31:56 -0200, Manikandan R <mani.agape@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