title: R API to be accessible over the web
body: <p>Hi I have R code which I have converted into an API using the <strong>plumber</strong> package.</p>
  
  <pre><code>library(plumber)
  r &lt;- plumb("code.R")
  r$run(port=8000)
  </code></pre>
  
  <p>The code sits in the file <code>code.R</code> and using the above lines I am able to access the API from my local machine from the URL <a href="http://localhost:8000/functionname" rel="nofollow noreferrer">http://localhost:8000/functionname</a></p>
  
  <p>However when I replace the local host with my IP address and access the same from other machines in the network, I am unable to access the API. Why is that? </p>