node.js - Grunt server no error, not working -


The cancer is not giving me any errors, but when I go to the IP address, there is nothing.

I know that the node works, because I used the node to create a nonbounce server, and it works on a single port and works fine.

When I'm running a BERBONS server, it says that the port is taken, so I know that at least it thinks that it is working on that port.

When I used the same files on my local machine, it works fine, and I port and it works so the barebones server does.

Any clues as to what can it cause? By the way, I'm using yo to install the Konoble-Bootstrap.

For the barebones server, I just do this:

  DIR = ~ / proj2 / www FILE = hello.js mkdir-p $ dir cat & lt; & Lt; EOF & gt; $ DIR / $ FILE var http = Expected ('HP'); Var server = http.createServer (function (request, response) {response.writeHead (200, {"content-type": "text / html"}); response.end ("& lt; html & gt; & lt; Body & gt; Hello World & lt; / body & gt; & lt; / html & gt; ");}); Server.listen (9000); EOF    

  // change it to '0.0.0.0' Hostname from Server: 'Localhost'   

Okay, as the comment of the code says, all you have to do is change 'local host' to '0.0.0.0'.

Thank you, me; You have been very helpful!

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -