Webserver is answering on port 2000 (http://10.0.1.165:2000/ => page loads) but displays Control Offline because javascript cannot connect back to esp through websocket: [R.] means reset (="connection refused"), nobody is answering:
(10.0.1.137 is PC-webbrowser trying to reach ESP on port 80 but ESP is listening on port 2000)
(web browser console: WebbSocket connection to 'ws://10.0.1.165/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED)
With this proposed change, it simply works as before (like with the revert above).
~This PR is of course incomplete and~ I ran my tests with this before compiling:
This PR aims at fixing #275 in which there seems to be a misunderstanding.
This PR reverts this change (highlighted part).
To describe the problem, on esp8266 and regular espasync libraries, and this port-changing patch applied to the
gui
example:Webserver is answering on port 2000 (
http://10.0.1.165:2000/
=> page loads) but displaysControl Offline
because javascript cannot connect back to esp through websocket:[R.]
means reset (="connection refused"), nobody is answering:(10.0.1.137 is PC-webbrowser trying to reach ESP on port 80 but ESP is listening on port 2000) (web browser console:
WebbSocket connection to 'ws://10.0.1.165/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
)With this proposed change, it simply works as before (like with the revert above).
~This PR is of course incomplete and~ I ran my tests with this before compiling:
fixes #275