[Vm-dev] Finding ip address for eth0?
Bert Freudenberg
bert at freudenbergs.de
Wed Aug 26 22:03:42 UTC 2009
On 26.08.2009, at 23:57, Andreas Raab wrote:
> John M McIntosh wrote:
>> NetNameResolver addressesForName: self localHostName
>
> This doesn't work at all for me. In fact it's not even asking the
> right question ;-) Using the 3.10-6 VM with an Etoys-dev image I get
> this:
>
> NetNameResolver localHostName
> => 'localhost.localdomain'
>
> NetNameResolver addressesForName: NetNameResolver localHostName
> => 127.0.0.1(localhost),0(0)-inet4-stream-tcp
>
> I'm not surprised with the result because you are asking DNS to
> resolve localhost.localdomain which is different from asking the
> question of what IP addresses are assigned to the various interfaces
> in your system.
>
> I thought Bert said that there is a way to enumerate the IP
> addresses of the interfaces?
I thought it did, but I never had to use it yet ... grmph, I'm sure
there is a way. Ian?
- Bert -
More information about the Vm-dev
mailing list