Mongoose allows to specify port-only 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 IP address). 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:
|
// Ip address and port. If port was set to 0, then real port |
|
std::string listening_ports = ipAddress + ":" + port; |
Original issue reported on code.google.com by czarek.t...@gmail.com on 23 Apr 2015 at 10:06
Mongoose allows to specify port-only 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 IP address). 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:phpdesktop/phpdesktop-chrome47/web_server.cpp
Line 59 in fa2ef7b
phpdesktop/phpdesktop-chrome47/web_server.cpp
Line 161 in fa2ef7b
Original issue reported on code.google.com by
czarek.t...@gmail.comon 23 Apr 2015 at 10:06