Node.js http chat server

I try create chat server, which will be conncted to Android clients. 1 Client send some data on server, server receive it and send to rest of Clients. So I tried use 'net', but that didn't works. On server i'm listening 1490 port and 192.168.3.XX address. Now my Clients can connect to server, but sending data doesn't work. Code:

var net = require('http');
var sockets = [];
var tcpServer = net.createServer();

tcpServer.on('connection', function(socket){
console.log(socket.remoteAddress+' connected');
socket.setEncoding('utf8');
sockets.push(socket);
socket.on('data', function(data){
    console.log(data);
    socket.emit('data', data);
});
});
tcpServer.listen(1490, '192.168.3.XX');

I think your problem is on the android client code.
Check this, hope it helps

public void postData() {
    // Create a new HttpClient and Post Header
    HttpClient httpclient = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("http://www.yoursite.com/script.php");

    try {
        // Add your data
        List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
        nameValuePairs.add(new BasicNameValuePair("id", "12345"));
        nameValuePairs.add(new BasicNameValuePair("stringdata", "AndDev is Cool!"));
        httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

        // Execute HTTP Post Request
        HttpResponse response = httpclient.execute(httppost);
        
    } catch (ClientProtocolException e) {
        // TODO Auto-generated catch block
    } catch (IOException e) {
        // TODO Auto-generated catch block
    }
}