Cant get node.js to listen on a simple port

Home Forums General Cant get node.js to listen on a simple port

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30779
    Larry Schoeneman
    Participant

    I was testing a very simple web server….

    var http = require('http');
    
    //create a server object:
    http.createServer(function (req, res) {
       console.log('In server');
        res.write('Hello World!'); //write a response to the client
      res.end(); //end the response
    }).listen(8080, '192.168.1.40' ); //the server object listens on port 8080
    

    This works fine when i run it on my pc and access it by:
    http://192.168.1.40:8080.

    When i run it on the conduit, it can’t ever find the page.
    I browse to http://192.168.1.40:8080 but it always seems to timeout

    Any idea

    #30780
    Jason Reiss
    Keymaster

    Is this on an mPower firmware?

    Inbound connections are not allowed by default.
    Check the firewall settings and open a port.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.