# JupyterHub-AWS EC2 instance-This site can't be reached

**URL:** <https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327>\
**Category:** JupyterHub\
**Created:** [January 1, 2021, 3:55pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327 "2021-01-01T15:55:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rk\_jc](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/rk_jc/32/3366_2.png) [@rk\_jc](https://discourse.jupyter.org/u/rk_jc)\
**Post date:** [January 1, 2021, 3:55pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327/1 "2021-01-01T15:55:09Z")

</div>

**AWS EC2 instance:** /hvm-ssd/ubuntu-focal-20.04-amd64-server  
**Instance Type:** C5 large

Tried installing JupyterHub two ways:

1. [Install JupyterHub and JupyterLab from ground up](https://jupyterhub.readthedocs.io/en/latest/installation-guide-hard.html#prerequisites)
2. The Littlest Jupyter Hub

I have also forwarded the port 8000 to ip server in Putty.

For option 1 after following all the steps and when I run command:

`sudo systemctl status jupyterhub.service`

I get following message in terminal:

 ![JH_putty](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/4/4db05d5e9e72f9ac04776d979ceabbd6490b3575.png)

> Hub API listening on 127.0.0.1:8081  
> JupyterHub is now running at8000

According to guide, I should be able to open the site.  
But I get “This site can not be reached” error message (Google Chrome)  
I tried to open it using:

> https //{ip server\>/8000  
> https [//127.0.0.1/8000](https://127.0.0.1/8000)

I have also granted all access to port 8000 and 8081 for EC2 instance on AWS.  
Any help in the right direction will be really helpful.

---

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [January 1, 2021, 4:19pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327/2 "2021-01-01T16:19:28Z")

</div>

The output of `sudo systemctl status jupyterhub.service` is quite informative - everything is up and running. Maybe you can ask for help in a forum that deals with Putty, SSH tunnels, and firewalls? From your information it looks like a networking issue.

---

<div class="post-metadata">

**Author:** ![rk\_jc](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/rk_jc/32/3366_2.png) [@rk\_jc](https://discourse.jupyter.org/u/rk_jc)\
**Post date:** [January 1, 2021, 4:53pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327/3 "2021-01-01T16:53:47Z")

</div>

Thanks @1kastner for the quick reply. You may be right - but it’s a rabbit hole and I am scared to go that way.  
It says hub is listening on port 8081, and when I ran nmap it doesn’t show 8081 in the list.  
So need to investigate that.  
Happy new year.

---

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [January 1, 2021, 8:44pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327/4 "2021-01-01T20:44:49Z")

</div>

Can you share which processes are listening on which ports?

---

<div class="post-metadata">

**Author:** ![rk\_jc](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/rk_jc/32/3366_2.png) [@rk\_jc](https://discourse.jupyter.org/u/rk_jc)\
**Post date:** [January 2, 2021, 10:15pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327/5 "2021-01-02T22:15:37Z")

</div>

@1kastner, I was able to install hub using ground up approach, but then it gave trouble while spawning.  
I then shifted to tljh and was able to install and run hub.  
The problem might have been in my security configuration of EC2 instance. I added some custom IPV and enable echo request. That did the trick for both ground up and tljh approach.  
Thanks for asking me the question - it led me investigate it further - but did not take the screenshot to answer back. Sorry.

---

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [January 3, 2021, 6:18pm UTC](https://discourse.jupyter.org/t/jupyterhub-aws-ec2-instance-this-site-cant-be-reached/7327/6 "2021-01-03T18:18:58Z")

</div>

Great to hear that the issue is solved!
