Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.tele.dk!feed118.news.tele.dk!feed116.news.tele.dk!bofh.vszbr.cz!news.radio.cz!newsreader4.netcologne.de!news.netcologne.de!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'host,': 0.09; 'hosts': 0.09; 'ping': 0.09; 'pythonistas,': 0.09; 'wrote:': 0.15; '(aka': 0.16; 'host"': 0.16; 'narrow': 0.16; 'scientist': 0.16; '16,': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; 'subject:list': 0.16; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'received:209.85.215.46': 0.23; 'received:mail- ew0-f46.google.com': 0.23; 'gateway': 0.25; 'sender:addr:gmail.com': 0.26; 'url:mailman': 0.27; 'host': 0.28; 'sat,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'server': 0.29; 'shell': 0.29; 'cc:addr:python.org': 0.30; 'subject:?': 0.31; 'url:listinfo': 0.32; 'michael': 0.32; 'list': 0.32; 'actually': 0.33; 'google': 0.34; 'question': 0.35; 'url:python': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'user': 0.38; 'subject:: ': 0.38; 'case': 0.39; 'should': 0.39; 'received:209': 0.40; 'your': 0.60; 'fan': 0.66; 'quality': 0.74; 'amaze': 0.84; 'defense,': 0.84; 'here...': 0.91; 'from.': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AJ3YfGksnlfhc1H0gtFcMNuuQYu1Ho5urg00iqnhA/s=; b=Qiqg219op6vQUXlmnrM4R//6KIig+5OENAsPfJX26aytLr/iyLH3KFSRVM6lz1Fu4d qYcpb38fjrhuIvKAlG2CeH3562JkmubI2eCB2iC2xs7Ta4eJJR9lbE9EYVNjgZYMmhcU 24ycm9wRKYsSvXFDpzS98ZbYQVJmwgFe3IgyY= MIME-Version: 1.0 Sender: mhrivnak@gmail.com In-Reply-To: References: Date: Sat, 16 Jul 2011 16:01:45 -0400 X-Google-Sender-Auth: mWLNw9H296JbR4daJfPSd9hpdFw Subject: Re: how to get a list of all the hosts on the intranet around my workstation? From: Michael Hrivnak To: Phlip Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310846507 news.xs4all.nl 23836 [2001:888:2000:d::a6]:47933 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9648 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 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? > > -- > =A0Phlip > =A0http://bit.ly/ZeekLand > -- > http://mail.python.org/mailman/listinfo/python-list >