How to send broadcast message over network and collect all the IP address?
Francesco Ciocchetti
primero at fastwebnet.it
Fri Jul 15 11:49:26 EDT 2005
Sandeep Arya wrote:
>Hello to all
>
>Well this is my first mail on this list. I am facing a problem associated
>with collecting IP address on my network.
>
>What i thought is to send broadcast packet over the network and then
>recieving back the reply from the computers and bridges connected to my
>network and then adding their IP Address in a list.
>
>How this can be achieved? Say my computer on which application will run's IP
>is 192.168.100.254 and subnetmask is 255.255.255.0
>
>How to do this in core Python?
>
>Sandeep
>
>_________________________________________________________________
>7000 classifieds
>http://www.sulekha.com/classifieds/cllist.aspx?nma=IN&ref=msn -Chennai,
>Mumbai, Hyderabad Bangalore.
>
>
>
I'm leaving from office now so i can not give a more complete answer ...
i would use an ARP Request to all network address on your network and
check who answer. Check out libdnet (http://libdnet.sf.net) for a python
module implementing networking funcions.
bye
Francesco
More information about the Python-list
mailing list