nodeSolidServer / nodeSolidServer/node-solid-server

startup message about listening address incorrectly reports host as localhost

Open
#1,449 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

When you start n-s-s it prints the following message:

Solid server (5.4.0) running on https://localhost:8443/

However, this is not technically correct. When I see 'localhost' I expect that the server would be listening only on 127.0.0.1. However, the server is actually listening on all addresses (0.0.0.0 / :: in ipv6). I can verify this by connecting to the container where I'm running it in docker:

/opt/solid $ netstat -ptnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.11:39681        0.0.0.0:*               LISTEN      -
tcp        0      0 :::8443                 :::*                    LISTEN      14/node

(the :::8443 shows that it's listening on ipv6's wildcard address ::).

Ideally I would like to see this message say: "Solid server (5.4.0) running on https://0.0.0.0:8443/". As an additional enhancement, it might be nice to allow this listen address to be configured with an options flag. I can't see one in the help output.

Contributor guide

Open the contributing guide

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 by locating the startup message that reports the listening address and compare it with the server's actual Docker listening behavior shown by netstat. Check the help output for existing listen-address options; done means the message accurately reflects the bind address and any supported configuration is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.