Install IPython on Ubuntu 12.04 VirtualBox guest server and use it in browser on Windows host

On the guest machine (Ubuntu 12.04), as usual, I installed ipython and ipython-notebook from the repositories. Then I started ipython notebook to start the server and try to access this page from the host browser (running Windows 7), but it won't connect.

The ipython server runs on the default port 8888. I tried to use NAT configuration for VMs and route ports 8888 from host to 8888 on guests, but with no success. I've also tried to use bridged networking, but I'm not sure which direction I should go into the browser. Is this the host IP address for eth0 shown by the ifconfig command on port 8888?

Is it possible for this configuration to work?

+3


source to share


1 answer


IPython notebook runs on localhost by default. I don't think the VM's loopback interface is visible to the Host OS. You will need to tell the laptop to listen to the public IP address of the virtual machine with

ipython notebook --ip=a.b.c.d

      



then you should be able to connect to your host.

You can also set this value permanently as NotebookApp.ip = 'a.b.c.d'

in the ipython_notebook_config.py file.

+6


source







All Articles