Ah, okay. Thanks. On Sat, Sep 8, 2012 at 7:02 PM, Ben Noordhuis <[email protected]> wrote: > On Sat, Sep 8, 2012 at 1:39 PM, Tom Wieland <[email protected]> wrote: >> Hello. >> >> I'm trying to get remote debugging to work in my IDE and on an Ubuntu 12.04 >> VPS. I'd like to use port 8881 (or any other really) so I've added that to >> my firewall. >> >> If I take the example on the NodeJS homepage; >> >> >> var http = require('http'); >> http.createServer(function (req, res) { >> res.writeHead(200, {'Content-Type': 'text/plain'}); >> res.end('Hello World\n'); >> }).listen(8881, '127.0.0.1'); >> console.log('Server running at http://127.0.0.1:8881/'); >> >> >> then I can't reach it with telnet. if I change the host to >> <myoutwardfacingip> then I can telnet to it. Would this be the problem I'm >> also having with `node --debug-brk=8881 thescriptiwanttodebug.js` ? > > Yes. The debugger always listens on localhost. If you want to access > it from a remote computer, you'll have to set up port forwarding with > ssh or maybe iptables. > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en
-- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
