D
D
Dmitry Filandor2018-04-10 08:43:51
Node.js
Dmitry Filandor, 2018-04-10 08:43:51

How to run node.js on windows server 2012 VDS?

Hello! Installed the package, launched it, writes:
Express server listening on port 3000 on 0.0.0.0
opening: localhost:3000 error:
Cannot find the web page
Entries appear in the console:
127.0.0.1 - - [10/Apr/2018:05:38:54 +0000] "GET / HTTP/ 1.1" 404 139 "-" "Mozilla
/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
"

  • checked netstat - and the result is port 3000 - listening;

On a local machine (not a server) - everything works.
in c:\Windows\System32\drivers\etc\hosts
#127.0.0.1 test.com - as I understand it should be commented out?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Argumentus, 2018-04-10
@LifeAct

in hosts should be:
127.0.0.1 localhost
or open 127.0.0.1:3000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question