Problem with sockets listening with ip address of 0.0.0.0

Bill at GLO Ltd bill at gloltd.com
Sun Feb 24 02:17:51 UTC 2002


Thanks but I don't think that is the problem here.

If I do

"Socket initializeNetwork.
(Socket newTCP) listenOn: 5678."

In a workspace I get a socket listening on 5678 with a local ip of 0.0.0.0
   but
"NetNameResolver localHostAddress"  gives  ByteArray(192 168 0 1).

Is there anyway to explicitly say what the ip should be when you create a
socket?

Regards

Bill

-----Original Message-----
From: Bob Arning [mailto:arning at charm.net]
Sent: Saturday, February 23, 2002 8:44 PM
To: bill at gloltd.com; squeak-dev at lists.squeakfoundation.org
Subject: Re: Problem with sockets listening with ip address of 0.0.0.0


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