So, I have a web application running on http-servervia npm. In my file package.jsonI have a line "start": "sudo http-server -a [my ip address] -p 8065 -c-1"and my application is working fine when I go to http://myipaddress:8065. However, if I change 8065 to 80, in the json file (this is what I want), I still get a success message:
Starting up http-server, serving ./
Available on:
http://myipaddress:80
But when I get to the link, chrome will give me ERR_CONNECTION_REFUSED. Does anyone know what is going on?
rohan source
share