Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not run node.js app with web client #25

Open
leminhthuan opened this issue Sep 6, 2012 · 0 comments
Open

Can not run node.js app with web client #25

leminhthuan opened this issue Sep 6, 2012 · 0 comments

Comments

@leminhthuan
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant