Skip to content

Express does not recognise used ports allocated by other processes (not started by express) #3952

@zukoaang

Description

@zukoaang

Hey,
There's a weird bug, that express does not recognise used ports by other processes (not started by node/express).

For example:
create a simple express app that listen on port 9000, that return something like 'hello express' in the response.
in the other hand, start another listening service on the same port, like using python:
python -m SimpleHTTPServer 9090

then open the browser, and create a request to localhost:9000, and you will see response from express
then, create another request to 127.0.0.1:9000, and you will see response from python (ftp serve)

some meta:
OS: MacOS 10.14
node -v: v11.13.0
npm -v: 6.7.0
express version (package.json): ^4.16.2

(found with @https://github.com/20matan)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions