WebSocket-for-Python icon indicating copy to clipboard operation
WebSocket-for-Python copied to clipboard

"Connection closed by server: 1006" when using --host 0.0.0.0

Open aruangra opened this issue 8 years ago • 1 comments

I did these steps on Raspberry Pi3:

  1. git clone https://github.com/Lawouach/WebSocket-for-Python.git
  2. cd WebSocket-for-Python/
  3. sudo python setup.py install
  4. python example/echo_cherrypy_server.py --host 0.0.0.0
  5. Then open a browser on my PC and go to http://192.168.1.x:9000

Then the message box shows: Connection closed by server: 1006 ""

I use cherrypy 3.5.0 in my RPi3. Please advise the way to solve the problem. Note that there is no problem if I specify the IP address of either Ethernet or Wifi. I have to use 0.0.0.0 as Host because I connect to RPi via Ethernet or Wifi.

Thank you.

aruangra avatar May 26 '16 04:05 aruangra

I am having the same problem. I have a server that will need access from multiple addresses. Is there a way around this problem yet?

dave373 avatar Oct 11 '17 23:10 dave373