Can not open static website with custom port


#1
npm install http-server -g

run the command under the workspace

http-server . -p 9000

it will get ERR_CONNECTION_TIMED_OUT error


#2

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


#3

Thanks. Got it.

I will try to full use of the three ports.