server.socket_host: '0.0.0.0'
...would also work. That's IPv4 INADDR_ANY, which means, "listen on all interfaces".
In a config file, the syntax is:
[global]
server.socket_host: '0.0.0.0'
In code:
cherrypy.server.socket_host = '0.0.0.0'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…