local address and hostname on Unix

Davide Arrigo davidearrigo at alice.it
Tue Oct 4 17:06:22 UTC 2005


Alle 13:35, martedì 4 ottobre 2005, Philippe Marschall ha scritto:
> Hi
>
Hi all.
> I thought to get the network address and name of the local machine I do:
>
> NetNameResolver localHostName
> NetNameResolver localAddressString
>
> This works on Windows but on Unix it returns just the loopback
> addresses 'localhost' and '127.0.01'. So what is the way to do it on
> Unix?
On my Unix and Linux workstations work so fine.
Try "ifconfig" from command line if you use linux or tell us what Unix (HP, 
AIX, BSD and so on) do you have.

Abientot.
-- 
---------------
Davide Arrigo




More information about the Squeak-dev mailing list