API port 8000 - This site can’t be reached

November 10, 2017 1.4k views
API

Hi,

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

https://www.computerworld.com/article/3171766/application-development/how-to-create-your-own-slack-bots-and-web-apis-in-r.html?page=2

Any help would be much appreciated

1 Answer

Hello,

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!
Regards,
Bobby

Have another answer? Share your knowledge.