Problem with sockets listening with ip address of 0.0.0.0

Bob Arning arning at charm.net
Sat Feb 23 20:43:35 UTC 2002


On Sat, 23 Feb 2002 14:28:32 -0000 "Bill at GLO Ltd" <bill at gloltd.com> wrote:
>I'm trying to get swiki running on nt, but it listens
>on port 80 with an ip of 0.0.0.0 which means it works fine
>in IE on localhost but is not so good over the web :).
>
>If I do NetNameResolver>>localHostAddress before I start the
>server it returns 0.0.0.0 whereas after the server has started
>it comes up with the proper ip.
>
>I tried setting the defaultHostName in the NetNameResolver class
>but that didn't help.
>
>There doesn't seem to be anywhere in the socket class to
>tell it what the ip address should be ?

Bill,

The important thing is to do

	Socket initializeNetwork

BEFORE

	NetNameResolver localHostAddress

Then you will get the right address.

Cheers,
Bob



More information about the Squeak-dev mailing list