Hello Experts,

I am a new bie to node.js. I have tried simple example with node.js to 
build a simple gropu chat.
I have hosted in Centos. Below is my code app.js

var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server),
users = {};
server.listen(3000);
console.log('Server running');

app.get('/', function(req, res){
res.sendfile(__dirname + '/index.html');
});



Say the ip address of centos is 192.168.1.2. And it works well if i test it 
via localhost i.e. http://localhost:3000.and if i try to access the same 
using IP address 192.168.1.2:3000 i get the error could not correct.  I 
have started the node app.js. 
Its hosted in the path /var/www/html/Chat. If i also try using url 
192.168.1.2/Chat, i could see the index.html page but i am not able to 
proceed and sucks there and if i inspect (chrome) I get the below error. 
What am i missing here?


Failed to load resource: the server responded with a status of 404 (Not 
Found) http://192.168.1.2/Chat/socket.io/socket.io.js
Uncaught ReferenceError: io is not defined (index):53<http://192.168.1.2/Chat/>



Thanks
Srivatsa

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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to