Changing the default port for iPython notebook server / Jupyter -


i trying run ipython notebook / jupyter server on machine behind firewall. port open port 80. wondering how can change default port 8890 80?

i have ran following command ipython profile create create profile.

then edited ipython_notebook_config.py , edited contain following:

c = get_config() c.notebookapp.port = 80 

when try run python notebook. following error:

error: notebook server not started because no available port found.


hoever, nothing else seems using port 80. apache not boot @ startup , disabled. have used netstat see using each port.

$ sudo netstat -lnp active internet connections (only servers) proto recv-q send-q local address           foreign address                 state       pid/program name tcp        0      0 0.0.0.0:21              0.0.0.0:*               listen      1226/vsftpd      tcp        0      0 0.0.0.0:22              0.0.0.0:*               listen      1532/sshd        tcp        0      0 127.0.0.1:631           0.0.0.0:*               listen      3433/cupsd       tcp        0      0 127.0.0.1:5984          0.0.0.0:*               listen      1410/beam.smp    tcp        0      0 127.0.0.1:3306          0.0.0.0:*               listen      1653/mysqld      tcp6       0      0 :::22                   :::*                    listen      1532/sshd        tcp6       0      0 ::1:631                 :::*                    listen      3433/cupsd       udp        0      0 0.0.0.0:52741           0.0.0.0:*                           796/avahi-daemon: r udp        0      0 0.0.0.0:5353            0.0.0.0:*                           796/avahi-daemon: r udp        0      0 0.0.0.0:31114           0.0.0.0:*                           1105/dhclient    udp        0      0 0.0.0.0:68              0.0.0.0:*                           1105/dhclient    udp        0      0 xxx.xxx.xxx.xxx:123        0.0.0.0:*                           2607/ntpd        udp        0      0 127.0.0.1:123           0.0.0.0:*                           2607/ntpd        udp        0      0 0.0.0.0:123             0.0.0.0:*                           2607/ntpd        udp        0      0 0.0.0.0:631             0.0.0.0:*                           1630/cups-browsed udp6       0      0 :::5353                 :::*                                796/avahi-daemon: r udp6       0      0 :::69                   :::*                                1607/in.tftpd    udp6       0      0 :::24682                :::*                                1105/dhclient    udp6       0      0 xxxx::xxxx:xxxx:xxxx:123 :::*                                2607/ntpd        udp6       0      0 ::1:123                 :::*                                2607/ntpd        udp6       0      0 :::123                  :::*                                2607/ntpd        udp6       0      0 :::59559                :::*                                796/avahi-daemon: r active unix domain sockets (only servers) proto refcnt flags       type       state         i-node   pid/program name    path unix  2      [ acc ]     stream     listening     20483    3253/pulseaudio     /run/user/1003/pulse/native unix  2      [ acc ]     stream     listening     18697    3179/gnome-session  @/tmp/.ice-unix/3179 unix  2      [ acc ]     stream     listening     15765    2507/x              /tmp/.x11-unix/x0 unix  2      [ acc ]     stream     listening     20481    3253/pulseaudio     /tmp/.esd-1003/socket unix  2      [ acc ]     stream     listening     18698    3179/gnome-session  /tmp/.ice-unix/3179 unix  2      [ acc ]     stream     listening     15764    2507/x              @/tmp/.x11-unix/x0 unix  2      [ acc ]     stream     listening     10538    768/bluetoothd      /var/run/sdp unix  2      [ acc ]     stream     listening     21564    3433/cupsd          /var/run/cups/cups.sock unix  2      [ acc ]     stream     listening     10820    1653/mysqld         /var/run/mysqld/mysqld.sock unix  2      [ acc ]     stream     listening     16666    3184/dbus-daemon    @/tmp/dbus-1gowaublhv unix  2      [ acc ]     stream     listening     14432    748/dbus-daemon     /var/run/dbus/system_bus_socket unix  2      [ acc ]     stream     listening     8877     1/init              @/com/ubuntu/upstart unix  2      [ acc ]     stream     listening     16698    3136/ibus-daemon    @/tmp/dbus-ue1vkkxx unix  2      [ acc ]     stream     listening     12135    3005/gnome-keyring- /run/user/1003/keyring-htuksg/control unix  2      [ acc ]     stream     listening     14469    796/avahi-daemon: r /var/run/avahi-daemon/socket unix  2      [ acc ]     stream     listening     10034    3102/dbus-daemon    @/tmp/dbus-scyaea0hje unix  2      [ acc ]     stream     listening     18577    3005/gnome-keyring- /run/user/1003/keyring-htuksg/pkcs11 unix  2      [ acc ]     stream     listening     18581    3005/gnome-keyring- /run/user/1003/keyring-htuksg/gpg unix  2      [ acc ]     stream     listening     18583    3005/gnome-keyring- /run/user/1003/keyring-htuksg/ssh unix  2      [ acc ]     stream     listening     18569    3007/init           @/com/ubuntu/upstart-session/1003/3007 unix  2      [ acc ]     seqpacket  listening     11473    396/systemd-udevd   /run/udev/control unix  2      [ acc ]     stream     listening     10725    1572/acpid          /var/run/acpid.socket 

something listening on 80, cannot bind 2 servers same port. use proxy listen 80, , redirect other servers , ipython base on url, or address. don't use 80, use 443, if running public server should on tls security.

note low port number might need increase process privileges root, potentially using sudo.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -