can access over localhost, but not by IP

855 views
Skip to first unread message

Daniel

unread,
Feb 17, 2011, 5:55:19 PM2/17/11
to cherrypy-users
Hi,

I'm trying to test my new cherrypy service, but I can't access it by
IP. I know it sounds strange, but I can access this URL:
http://localhost:8180/

but not this one:
http://10.146.5.250:8180/

Windows 2008 R2
Python 2.5
CherryPy 3.1.2

Any ideas?

Daniel

unread,
Feb 17, 2011, 6:04:17 PM2/17/11
to cherrypy-users
I've just discovered that I can change:
server.socket_host = "127.0.0.1"

to this:
server.socket_host = "10.149.4.240"

I had tried it once before and got an error that it couldn't bind it.
On the second try it worked.

So it appears that I can either access it via 'localhost' or by IP or
possibly server name, but not all of them. Is that correct?

Sylvain Hellegouarch

unread,
Feb 17, 2011, 6:05:53 PM2/17/11
to cherryp...@googlegroups.com, Daniel
Try: 0.0.0.0 :)

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherryp...@googlegroups.com.
To unsubscribe from this group, send email to cherrypy-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.




--
- Sylvain
http://www.defuze.org
http://twitter.com/lawouach
Reply all
Reply to author
Forward
0 new messages