Can not open static website with custom port

npm install http-server -g

run the command under the workspace

http-server . -p 9000

it will get ERR_CONNECTION_TIMED_OUT error


That’s because the only public facing ports available is 8080, 8081, and 8082. The rest can only be used within the workspace.


Thanks. Got it.

I will try to full use of the three ports.