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 either).

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