[Vm-dev] unix nameToAddr() function appears to not work on Raspbian?

John Dougan jdougan at acm.org
Mon Sep 21 21:35:38 UTC 2015


This problem goes way back; in Open Cobalt I ended up going through a bunch
of adhoc steps and adding a manual config option to try and figure out if I
was behind a firewall and what the address of the firewalled interface was.

Have you considered the temp solution of forking off an ifconfig and
parsing out the results? I suspect in many cases, choosing the IP of the
default IPv4 or IPv6 interface would get you what you want.

Cheers,
-- John


On Mon, Sep 21, 2015 at 1:53 PM, tim Rowledge <tim at rowledge.org> wrote:

>
>
> On 21-09-2015, at 1:41 PM, John McIntosh <johnmci at smalltalkconsulting.com>
> wrote:
>
> > The problem with connecting to 8.8.8.8 which is Google's public DNS
> server is that:
> > (a) you might not have access to the internet
> > (b) you might be going thru a proxy and it may not be on the school
> white-list
> > (c) tapping port 80 on the dns server likely won't work either.
> ‘zackly.
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- Has an inferiority complex, but not a very good one.
>
>
>


-- 
John Dougan
jdougan at acm.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150921/a6565a97/attachment.htm


More information about the Vm-dev mailing list