hi all , 
i wrote a simple demo program by node.js with bellow content on my linux 
server : 

*var http = require('http');
http.createServer(function(req, res){
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello word \n');
}).listen(1340, '127.0.0.1');

console.log("server running at http://127.0.0.1:1340";);

*when i test on my server with command : *curl http://localhost:1340 *. It 
ran normaly and result : "Hello word"

but , when i try test this program on my client machine . I use any 
webrowser ex : Mozila firefox, IE, google chrome (type : x.x.x.x:1340), it 
not work and return me an error message : *Can not create connection to 
server x.x.x.x or connection timeout

 *so , what is error ? and how can i fix it ?

-- 
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

Reply via email to