Is the notebook server running on a different machine? Or in a virtual machine? localhost means 'this computer', so the default settings require it to be running on the same machine as the browser.
Just check if you are using chrome.
Settings-> Enable guest browsing.