Problem accessing server via IP address

1 view
Skip to first unread message

Michael Pearce

unread,
Feb 19, 2010, 5:47:41 AM2/19/10
to turbo...@googlegroups.com
I am implementing a turbogears application and whilst I can
access the application when testing on the server with http://localhost:8080,
I'm unable to access it via the IP address (eg. http://10.136.21.32:8080).
Is there a configuration setting which has to be set to map
the IP address. I initially posted this on the cherrypy-users group and was advised the following:
 
You must set socket_host to 0.0.0.0
for example:
cherrypy.config.update({'server.socket_host': '0.0.0.0'})
or in config file
Given that this is a Turbogears application, where would I put the above setting, and which cherrypy library would I need to include.
 
Thanks,
mpearce

Christopher Arndt

unread,
Feb 19, 2010, 7:12:44 AM2/19/10
to turbo...@googlegroups.com
Am 19.02.2010 11:47, schrieb Michael Pearce:
> You must set socket_host to 0.0.0.0
> for example:
> cherrypy.config.update({'server.socket_host': '0.0.0.0'})
> or in config file
> Given that this is a Turbogears application, where would I put the above
> setting

Your deployment config file:

http://docs.turbogears.org/1.1/Configuration#cherrypy-configuration-reference

BUT, see the note on the server.socket_host setting on the above page.
Setting it to '0.0.0.0' doesn't work with systems which have both an
IPv4 and IPv6 stack (e.g. newer Linux systems and OS X).

>, and which cherrypy library would I need to include.

None. It is already imported by your application's start script.

Chris

Reply all
Reply to author
Forward
0 new messages