Awesome q2a theme

Why not see the server on the Internet?

0 like 0 dislike
42 views
Windows server 2012 on this node

There is such code

var express = require("express"); var app = express(); app.get("/", function(request, response){ response.send("Hi Express!"); }); app.listen(3000);


On the server I pass in the browser http://125.234.41.751:3000/ normal shows.

With the computer trying to connect is not what displays.

Wish that was visible on the Internet by ip ?
by | 42 views

2 Answers

0 like 0 dislike
The firewall is likely to open access to port 3000.
by
0 like 0 dislike
Try to add another hostname, the default is only localhost.

//app.listen(3000); app.listen(3000, '0.0.0.0');
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users