Skip to content

Allow to listen on all ip addresses available #165

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
Mongoose allows to specify only port to listen on and in such case the web 
server should be listening on all ip addresses available (127.0.0.1, 
192.168.x.x, public..). Example from mongoose docs:

    listening_ports 8080,8043s 

(the second port is for SLL and is optional)

Currently phpdesktop forces a specific ip address be specified in 
settings.json. If the ip address is empty it assigns 127.0.0.1 by default.

It should be allowed for the ip address to be "*" and in such case set the 
listening_ports option in mongoose to contain only port.

Minor changes will be required in web_server.cpp:

https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/web_server.
cpp?r=c1ba05c26abf#59

https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/web_server.
cpp?r=c1ba05c26abf#161

Original issue reported on code.google.com by [email protected] on 23 Apr 2015 at 10:06

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions