<div class="gmail_quote">On Sat, Jan 23, 2010 at 4:51 PM, Simon Jagoe <span dir="ltr"><<a href="mailto:azriphale@gmail.com">azriphale@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 23 January 2010 18:20, J. Cameron Cooper <<a href="mailto:jccooper@gmail.com">jccooper@gmail.com</a>> wrote:<br>
</div><div class="im">> I'm trying to get Grok running on a remote server (an Amazon EC2 one). Now,<br>
> a Zope 2 one I would expect that once it's up on 8080 I'd be able to get<br>
> there with the public IP:8080, but I'm not able to do this with my new Grok<br>
> instance. I know it's not the firewalling, since I can get another server<br>
> running on 8080 and see it fine, but with Grok running (with Paster) on<br>
> 8080, I get the connection refused from the public IP. I know it's running,<br>
> since I can load it with lynx from the server (as <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a>).<br>
> I notice that when strating it claims that:<br>
> Starting server in PID XXXX.<br>
> serving on <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a><br>
> Is it only going to allow connections to this specific name that it's<br>
> serving?<br>
<br>
</div><div><div></div><div class="h5">Exactly, it is only accepting connections to localhost (i.e.<br>
127.0.0.1). If you are using the paster server, you can change this by<br>
editing /path/to/project/etc/<a href="http://deploy.ini.in" target="_blank">deploy.ini.in</a> and look for the section<br>
like this:<br>
<br>
[server:main]<br>
use = egg:Paste#http<br>
host = 127.0.0.1<br>
port = 8080<br>
<br>
Change the host line to contain 0.0.0.0 to bind to all addresses<br>
available, then re-run ./bin/buildout.<br></div></div></blockquote><div><br>Brilliant, thanks. Works great.<br><br>Is this in the docs anywhere? I didn't see it, and I looked pretty well--I think. And it's a bit of an important point.<br>
</div></div><br> --jcc<br><br>--<br>Maybe someday my email address will move back to <a href="http://jcameroncooper.com">jcameroncooper.com</a>. Stay with this one until further notice.<br>