thaks guys. But the problem is with the client.connect(server,80). Its always returning false no matter what