[clue-tech] difference between localhost and hostname
Angelo Bertolli
angelo at freeshell.org
Thu Jul 10 09:36:35 MDT 2008
Jason S. Friedman wrote:
> I have been playing with Google App Engine, although my question is
> probably not related to this particular application. I start my
> service as an unprivileged user with:
> ./dev_appserver.py --port=9999 myapp
>
> powerpull at goldenrule ~ $ egrep 'localhost|goldenrule' /etc/hosts
> 127.0.0.1 localhost
> 192.168.0.150 goldenrule.powerpull.net goldenrule
>
> When I point my browser at http://localhost:9999 the service returns
> my page. When I point my browser at http://goldenrule:9999 or
> http://goldenrule.powerpull.net:9999 I get a connection error. Why is
> that?
I guess your application only listens on 127.0.0.1 and not on any other
interface.
You can run `netstat -l` to see what's listening.
Angelo
More information about the clue-tech
mailing list