Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot connect to IPython notebook running on the AWS EC2

I am running an AWS EC2 GPU instance. And I setup iPython notebook on this instance follow the tutorial.

At the last step, I used this command:

sudo ipython notebook --profile=nbserver

to start iPython notebook. It seems OK. The output information is:

[I 14:14:30.214 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
[I 14:14:30.230 NotebookApp] Serving notebooks from local directory: /home/ubuntu
[I 14:14:30.230 NotebookApp] 0 active kernels
[I 14:14:30.230 NotebookApp] The IPython Notebook is running at: https://[all ip addresses on your system]:8888/
[I 14:14:30.230 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

However, I use my browser to launch the remote iPython notebook:

https://ec2-54-66-247-201.ap-southeast-2.compute.amazonaws.com:8888/

But I fail on this step. I have no idea. Any suggestion?

like image 618
Donghui Sun Avatar asked Feb 09 '23 19:02

Donghui Sun


1 Answers

You will need to open port 8888 for Inbound traffic in the Security Group associated with your Amazon EC2 instance.

Security Group rules

like image 158
John Rotenstein Avatar answered Mar 07 '23 05:03

John Rotenstein