Forum OpenACS Q&A: Re: Unable to connect OpenACS from another pc

Collapse
Posted by Chino Moreno on
it's werd !

When I ping the server, i've got an answer everything is allright.

But when I try to connect on specified port with your command it doesn't work. To check, I tried on the resin port and it works.

I think it comes from AolServer but the matter is on the aolserver machine it works.

when i do a netstat -ant I've got this :
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN for AolServer

It looks different for Resin !
...

I found the solution :
In the .tcl loaded by nsd : you have to change the adress of the server. The right adress is 0.0.0.0

It's now the same config than resin and It works on my windows.

Thanks to everyone for your help ! :)

Collapse
Posted by Jeff Davis on
listening on 0.0.0.0 means listen on all IP
addresses on the machine.  the IP address 127.0.0.1 is the local loopback device and cannot be connected to from another
machine.  While 0.0.0.0 is ok to use if its your machine it
is common to have multiple IP addresses on a server and
in that case listening on 0.0.0.0 would mean no other
server could use port 8000 on any other IP address
for that reason you may want to put the actual
IP address you really want to use in explicitly.