sta / sta/websocket-sharp

Allow 0.0.0.0

Open
#649 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hey guys,

first of all, great work with this lib!
Is there any chance that you could allow IpAddress.Any (or "<protocoll>://0.0.0.0:<port>") for the WebSocketServer?

Please allow:
var server = new WebSocketServer($"ws://{IPAddress.Any}:80");

Error:

The IP address of the host is not a local IP address.

Otherwise I don't get the routing working in docker.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start at the WebSocketServer endpoint validation that rejects IPAddress.Any, then reproduce the issue with the ws://0.0.0.0:80 example from the report. Done means the server accepts 0.0.0.0 as a listen address and supports routing when run in Docker.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.