>
> (impossible without the added networking prims, and still unreliable
> whether it will find the correct ones with...)
>

The problem seems to be here: he->h_addr_list[0] its a list of addresses
and only the first one is used.

Unix:
https://github.com/pharo-project/pharo-vm/blob/e0ce2d9d78c3c7b37bbc12cd8730c6a15f1f057c/opensmalltalk-vm/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c#L273
Windows:
https://github.com/pharo-project/pharo-vm/blob/e0ce2d9d78c3c7b37bbc12cd8730c6a15f1f057c/opensmalltalk-vm/platforms/win32/plugins/SocketPlugin/sqWin32NewNet.c#L1843
h_addr_list explanation:
http://www.gnu.org/software/libc/manual/html_node/Host-Names.html

But changing that might affect the whole networking package, so i don't
think it's going to be changed soon.


On 13 May 2018 at 15:20, Hilaire <hila...@drgeo.eu> wrote:

> I already tried the one you suggested, but it returns the loopback IP on
> P7.
>
> With the Henrik SSDP package, I can get the IP:
>
> SSDPParticipant new allLocalV4Addresses.
>
> However when I activate a second network interface, this last one returns
> an empty collection. When inactivating this second interface, it still
> returns an empty collection...
>
> Hilaire
>
>
> Le 13/05/2018 à 20:05, Julián Maestri a écrit :
>
>> NetNameResolver localHostAddress. "#[192 168 0 4]"
>>
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>
>

Reply via email to