title: JedisConnectionException: java.net.SocketTimeoutException: connect timed out
body: <p>I'm using jedis for simple key-value data store... My code is as follows</p>
  
  <pre><code>private static final String HOST = "50.30.35.9"; 
  private static final int PORT = 2863;    
  Jedis jedis = new Jedis(HOST, PORT); 
  
    try { 
        jedis.set("foo", "bar"); 
        jedis.get("foo"); 
    } catch (Exception e) { 
        System.err.println("Unable to connect to Redis"); 
        e.printStackTrace(); 
    } 
  </code></pre>
  
  <p>When i test redis server with jedis client,  i got the following 
  exception. </p>
  
  <pre><code> redis.clients.jedis.exceptions.JedisConnectionException: 
   java.net.SocketTimeoutException: connect timed out 
           at redis.clients.jedis.Connection.connect(Connection.java:124) 
           at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:  54) 
           at redis.clients.jedis.Connection.sendCommand(Connection.java:  77) 
           at redis.clients.jedis.BinaryClient.set(BinaryClient.java:71) 
           at redis.clients.jedis.Client.set(Client.java:21) 
           at redis.clients.jedis.Jedis.set(Jedis.java:48)
  </code></pre>
  
  <p>Can someone please help?</p>