Asking authentication when I connect to 127.0.0.1:8888

550 views
Skip to first unread message

ihk

unread,
Mar 12, 2017, 10:38:52 PM3/12/17
to Project Jupyter
Hello,
I am trying to connect local Jupyter server.  It doesn't ask authentication if I use URL  localhost:8888
however, it asks authentication token if I use URL  12.0.0.1:8888 .
Is there a way to bypass security for 127.0.0.1 ? 

(The reason I am asking is  pycharm uses 127.0.0.1 to connect Jupyter , and everytime I connect I need to find auth token and enter in pycharm)

I use anaconda and pycharm.
thanks.  

Matthias Bussonnier

unread,
Mar 13, 2017, 12:07:46 AM3/13/17
to jup...@googlegroups.com
Hi ihk

On Sun, Mar 12, 2017 at 7:38 PM, ihk <ilk...@gmail.com> wrote:
> Hello,
> I am trying to connect local Jupyter server. It doesn't ask authentication
> if I use URL localhost:8888
> however, it asks authentication token if I use URL 12.0.0.1:8888 .
> Is there a way to bypass security for 127.0.0.1 ?

Yes, the login page should say:

Token authentication is enabled. You need to open the notebook server
with its first-time login token in the URL, or **enable a password**
in order to gain access.

(emphase mine)

Setting a password will remove the need for a token and you'll be able
to always use the same password.

The authentication can't be disabled, even for 127.0.0.1, or otherwise
website your visit could send requests and runcode on your machine.
It's probably not something you want.

>
> (The reason I am asking is pycharm uses 127.0.0.1 to connect Jupyter , and
> everytime I connect I need to find auth token and enter in pycharm)
>

If you setup a password, then the password will alway be the same, and
you should not have to re-enter it.

> I use anaconda and pycharm.
> thanks.

Cheers.
--
M
Reply all
Reply to author
Forward
0 new messages