how to get a list of all the hosts on the intranet around my workstation?

Michael Hrivnak mhrivnak at hrivnak.org
Sat Jul 16 16:01:45 EDT 2011


A host on your network is likely to have a default gateway (aka
default route).  That should be a reliable thing to ping.

Michael

On Sat, Jul 16, 2011 at 12:31 PM, Phlip <phlip2005 at gmail.com> wrote:
> Yes, pythonistas, sometimes I even amaze myself with the quality of
> question that a computer scientist with a 25 year resume can ask
> around here...
>
> In my defense, a Google search containing "intranet host" will fan out
> all over the place, not narrow on what I actually need.
>
> The Use Case is a user wants to ping a nearby host, and I provide a
> list of nearby hosts for the user to pick from. Nothing else. Hosts on
> the outernet need not apply.
>
> pydhcplib? Shell to a DHCP utility? Ping every server in a range
> around my own?
>
> --
>  Phlip
>  http://bit.ly/ZeekLand
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list