title: how to seed data to Riak using REST API from remote host
body: <p>I installed riak as per mentioned in the tutorial <a href="http://docs.basho.com/riak/latest/quickstart/" rel="nofollow">riak quick start</a>.</p>
  
  <p>I can upload/seed data to riak as described in REST API using curl client. The example curl commands as follows</p>
  
  <pre><code>curl -v -X PUT http://localhost:10018/riak/favs/db \
  </code></pre>
  
  <p>-H "Content-Type: text/html" \
  -d "<h1>My new favorite DB is RIAK</h1>"</p>
  
  <p>The same when I try to GET,</p>
  
  <pre><code>curl -i -X GET http://localhost:10018/riak/favs/db
  </code></pre>
  
  <p>HTTP/1.1 200 OK</p>
  
  <p>Whereas when I try uploading/seeding data from another machine (remote machine) things do not work as expected. </p>
  
  <pre><code>curl -i -X GET http://10.0.77.81:10018/riak/stats
  </code></pre>
  
  <p>curl: (7) couldn't connect to host</p>
  
  <p>But I could ping the host,</p>
  
  <pre><code>ping 10.0.77.81
  </code></pre>
  
  <p>PING 10.0.77.81 (10.0.77.81) 56(84) bytes of data.
  64 bytes from 10.0.77.81: icmp_req=1 ttl=61 time=576 ms
  64 bytes from 10.0.77.81: icmp_req=1 ttl=61 time=576 ms</p>
  
  <p>Could connect to tomcat server,</p>
  
  <pre><code>hariharankumar@pc170233-ThinkCentre-M70e:~/softwares/riak-1.4.2/rel/riak$ curl -i -X GET http://10.0.77.81:8080
  </code></pre>
  
  <p>HTTP/1.1 200 OK</p>
  
  <p>When connecting to riak host alone curl throws me error saying could not connect to host.</p>