title: POST request not working with IP address of localhost
body: <p>I have a REST web service hosted on tomcat-7 on my local machine. I have an application which uploads a file to the REST service.</p>
  
  <p>Now the problem I am facing is that when I use following URL for POST the uploaded document then the document is getting uploaded successfully.</p>
  
  <pre><code>http://localhost:8080/ResourceNet/upload
  </code></pre>
  
  <p>However when I replace 'localhost' with the IP of my machine and use following URL</p>
  
  <pre><code>http://192.168.68.193:8080/ResourceNet/upload
  </code></pre>
  
  <p>then nothing happens. The POST request never reaches to the REST service.
  However the GET requests are working properly with URL-2.</p>
  
  <p>Kindly help me out on the following points:</p>
  
  <ol>
  <li><p>Why POST is not working with IP address of the system but working when 'localhost' is used in place of IP.</p></li>
  <li><p>Why is it that GET is working properly with IP address is URL but POST is not.</p></li>
  </ol>
  
  <p>Thanks in advance.</p>