Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#189 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
networking

Research direction

Start by reproducing the reported behavior with example/echo_cherrypy_server.py using --host 0.0.0.0, then compare it with running the server on a specific Ethernet or Wi-Fi IP. Check the browser connection result and the server output; done means identifying why the wildcard host closes the WebSocket and confirming a fix or documented limitation.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
1.1k
Forks
286
Avg merge
1d 19h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Lawouach/WebSocket-for-Python

All issues in Lawouach/WebSocket-for-Python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.