API port 8000 - This site can’t be reached

November 10, 2017 1.4k views


I have followed this tutorial to the letter but whenever I run my R code on port 8000 (or any port) and open up a browser

http://ip:8000 I keep getting an: This site cannot be reached error


Any help would be much appreciated

1 Answer


What I would usually do in such cases is:

  • First check if the process is actually listening on that port:
netstat -plant | grep 8000
  • If the port is actually being used, then make sure that it is open for incoming traffic via your firewall. If you are using Ubuntu and UFW, you could do that with:
ufw allow 8000

Hope that this helps!

Have another answer? Share your knowledge.