Hi
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?
Cheers Philippe
A Unix machine doesn't have a host address. Network interfaces have host addresses. So the local host address should be returned as 127.0.0.1 on Unix.
(and irritating as it may be, I think Unix is right and Windows is wrong in this respect).
On 10/4/05, Philippe Marschall philippe.marschall@gmail.com wrote:
Hi
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?
Cheers Philippe
Am 04.10.2005 um 13:35 schrieb Philippe Marschall:
Hi
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?
Edit /etc/hosts to have the name you want to appear first.
See http://lists.squeakfoundation.org/pipermail/squeak-dev/2002-May/ 040121.html
If you get it working, please add an FAQ entry.
- Bert -
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.
squeak-dev@lists.squeakfoundation.org