nodeload icon indicating copy to clipboard operation
nodeload copied to clipboard

Can not run node.js app with web client

Open leminhthuan opened this issue 12 years ago • 0 comments

0 down vote favorite

I wrote and ran a node.js program (such as : hello.js or others) on my linux server with ip address 62.x.x.x with basic content :

var http = require('http'); http.createServer(function(req,res){ res.writeHead(200, {'content-type':'Text plain'}); res.end('Hello '); }).listen(8000)

i tried test it on server with curl command : curl http://127.0.0.1:8000

i got result : 'hello' on screen.

but when i tried it on my client machince with webbrowser client (IE, Firefox,...) http://62.x.x.x:8000 The webbrowser can not load this page and can not return my resutl .

I don't know what dose error mean ? , so some body can show me ? and how to fix error ?

thank !

leminhthuan avatar Sep 06 '12 04:09 leminhthuan