However, this doesn't work. I cannot even see the VirtualBox is listening on the port 8888 after I restart VirtualBox.
Code: Select all
$ netstat -ap tcp|grep -i "listen"
tcp4 0 0 *.ddi-tcp-1 *.* LISTEN
tcp4 0 0 localhost.49152 *.* LISTEN
tcp4 0 0 localhost.29754 *.* LISTEN
tcp46 0 0 *.sunproxyadmin *.* LISTEN
tcp6 0 0 *.61500 *.* LISTEN
tcp4 0 0 *.61500 *.* LISTEN
tcp4 0 0 *.ssh *.* LISTEN
tcp6 0 0 *.ssh *.* LISTEN
Code: Select all
<Network>
<Adapter slot="0" enabled="true" MACAddress="0800270E37F1" type="virtio">
<NAT>
<Forwarding name="jupyter-notebook" proto="1" hostport="8888" guestport="8888"/>
</NAT>
</Adapter>
</Network>
Code: Select all
Name Protocol Host IP Host Port Guest IP Guest Port
jupyter-noteb... TCP 8888 8888