Question

API port 8000 - This site can’t be reached

Posted November 10, 2017 1.9k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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

Submit an Answer