ssh AWS, Jupyter Notebook not showing up on web browser


I am trying to use ssh connecting to AWS “Deep Learning AMI for Amazon Linux”, and everything works fine except Jupyter Notebook. This is what I got:

gave me


Copying http://localhost:8888/?token=74e2ad76eee284d70213ba333dedae74bf043cce331257e0 and get

can’t establish a connection to the server at localhost:8888.” on Firefox,

This site can’t be reached localhost refused to connect.” on Chrome
enter image description here

enter image description here

jupyter notebook --ip=yy.yyy.yyy.yy --port=8888 gives

Note sure this will be helpful (Is it only for MXNet ? I am not familiar with MXNet) Jupyter_MXNet


localhost will only work when trying to use jupyter (or well, anything) from the machine itself. In this case, it seems you’re trying to access it from another machine.

You can do that with the switch –ip=a.b.c.d, where a.b.c.d is the public address of your EC2 instance (or using to make it listen in all interfaces.)

You can also use –port=X to define a particular port number to listen to.

Just remember that your security group must allow access from the outside into your choice of IP/Port.

For example:

jupyter notebook –ip=a.b.c.d –port=8888

Leave a Reply