Detecting computers on network
Sandeep Arya
d0153030 at hotmail.com
Fri Jul 22 12:32:04 EDT 2005
Thanks linuxfreak and sybren for positive comments
My application will be running on Linux.
How to send ICMP ECHO as broadcast packets. I do not know this. Please tell
me how to?
Sybren.. Does nmap is available on every systems? I tried on my linux fc4
machine in user previleage. it was not working. Does this just belongs to
superuser...
Is there any other way ? Can just socket.connect or sendto help me? I.E.
their return valuess...
Sandeep
From: Sybren Stuvel <sybrenUSE at YOURthirdtower.com.imagination>
To: python-list at python.org
Subject: Re: Detecting computers on network
Sent: Friday, July 22, 2005 1:59 AM
linuxfreak enlightened us with:
>How about sending an ICMP echo packet to your broadcast address and
>checking which hosts send a reply
Won't work on all boxes. Windows boxes ignore broadcast pings, for
example.
I'd go for a call to "nmap -sP" instead, and filter it's output.
Sybren
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Python-list
mailing list