<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
Looking at "<span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Socket newTCP", IPv6 is not even considered. One has to call "Socket </span><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">newTCP: SocketAddressInformation addressFamilyINET6". Maybe out IPv6 preferences needs to be considered more often?</span></span><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px"><br></span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">Best,</span></span></div><div><span style="font-family: Arial, Helvetica, sans-serif"><span style="font-size: 13px">Marcel</span></span></div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 23.04.2020 16:57:44 schrieb Levente Uzonyi <leves@caesar.elte.hu>:</p><div style="font-family:Arial,Helvetica,sans-serif">On Thu, 23 Apr 2020, Marcel Taeumel wrote:
<br>
<br>> Hi all!
<br>> I am on Windows 10. This is my output for the usual calls. Maybe it helps:
<br>>
<br>> SocketAddressInformation
<br>> forHost: 'localhost'
<br>> service: '12345'
<br>> flags: 0
<br>> addressFamily: 0
<br>> socketType: SocketAddressInformation socketTypeStream
<br>> protocol: SocketAddressInformation protocolTCP.
<br>>
<br>> " an OrderedCollection(::1(MOBILUS-TAB-NEW),12345(12345)-inet6-stream-tcp 127.0.0.1(MOBILUS-TAB-NEW),12345(12345)-inet4-stream-tcp)"
<br>>
<br>> NetNameResolver addressForName: 'localhost'.
<br>>
<br>> " ::1(MOBILUS-TAB-NEW),0(0)"
<br>>
<br>> ***
<br>>
<br>> Socket >> #connectTo: times out. Basically "WebClient httpGet: 'http://localhost:12345/test/auth'" does not work. ConnectionRefused.
<br>
<br>I suspect that the server only listens on the IPv4 address while, due to
<br>its undeterministic nature (it returns the first address no matter how
<br>many are there, and the order of the addresses is not defined),
<br>#addressForName: gives you the IPv6 address, so the client can't
<br>connect to the server.
<br>
<br>Another issue is that listening on IPv6 addresses is not possible (at
<br>least on my machine):
<br>
<br>IPv4 works:
<br>
<br>s := Socket newTCP.
<br>s listenOn: 60000 backlogSize: 8 interface: (NetNameResolver
<br>addressForName: '127.0.0.1').
<br>s "==> a Socket[waitingForConnection]"
<br>
<br>IPv6 does not work. It just fails silently:
<br>
<br>s := Socket newTCP.
<br>s listenOn: 60000 backlogSize: 8 interface: (NetNameResolver
<br>addressForName: '::1').
<br>s "==> a Socket[destroyed]"
<br>
<br>
<br>Levente
<br>
<br>>
<br>> Best,
<br>> Marcel
<br>>
<br>> Am 23.04.2020 09:42:00 schrieb John Pfersich via Squeak-dev <squeak-dev@lists.squeakfoundation.org>:
<br>>
<br>> The network resolvers are definitely different in Linux and MacOS, the one in MacOS is less forgiving, or maybe it’s less robust.
<br>>
<br>> /—————————————————————/For encrypted mail use jgpfersich@protonmail.com - Free account at ProtonMail.comWeb: https://objectnets.net and https://objectnets.org
<br>> https://datascilv.com https://datascilv.org
<br>>
<br>>
<br>> On Apr 22, 2020, at 18:36, David T. Lewis <lewis@mail.msen.com> wrote:
<br>>
<br>> I have to suspect platform differences at this point. I think that you
<br>> are using OS X (is that right?) and I expect that the network resolver
<br>> may behave quite differently on different platforms, so we'll need to
<br>> collect a few more data points to see where the issues are.
<br>>
<br>>
<br>><br></lewis@mail.msen.com></squeak-dev@lists.squeakfoundation.org></div></blockquote>
</div></body>