I am running didiwiki and I connect to it at http://localhostort (I can choose the port). If I am connected to my router and get an ip at boot, and then start the wiki, I can connect to it fine. However, if i start didiwiki and then connect to my router to get an ip, I can't connect to localhost (using 127.0.0.1 either).

Any ideas on what i need to do (I looked at my /etc/hosts files and all look ok)?