<div dir="ltr">There seems to be a similiar upstream bug report<div><a href="https://bugs.kde.org/show_bug.cgi?id=187731">https://bugs.kde.org/show_bug.cgi?id=187731</a><br></div><div><br></div><div>Can you try 127.0.0.1 instead of localhost?</div><div><br></div><div>mfg Tobias</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 April 2017 at 07:28, Matthias Apitz <span dir="ltr"><<a href="mailto:guru@unixarea.de" target="_blank">guru@unixarea.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<br>
<br>
I'm preparing myself to give some talk for which I need some multimedia<br>
content. To not depend on Internet in the place of the conference, I<br>
installed in my netbook (FreeBSD 12.0-CURRENT r314251, KDE 4.14, all<br>
ports compiled from head) a local apache and normally<br>
<br>
konqueror <a href="http://localhost/" rel="noreferrer" target="_blank">http://localhost/</a><br>
<br>
works as it should, until (and lucky I tested this) the interface wlan0<br>
has no IP addr assigned. In this case konqueror says that it can not<br>
resolve 'localhost' (which of course is in /etc/hosts file and<br>
/etc/nsswitch.conf says 'hosts: files dns').<br>
<br>
It is enough to set some dummy IP into the interface with:<br>
<br>
# ifconfig wlan0 1.1.1.1<br>
<br>
and this makes konqueror happy resolving 'localhost'. I've watched this<br>
with truss: /etc/nsswitch.conf is checked, but /etc/hosts not.<br>
<br>
Firefox works in both cases, with and without IP addr in the interface.<br>
<br>
Any idea what's causing this bug?<br>
<span class="HOEnZb"><font color="#888888"><br>
        matthias<br>
--<br>
Matthias Apitz, ✉ <a href="mailto:guru@unixarea.de">guru@unixarea.de</a>, ⌂ <a href="http://www.unixarea.de/" rel="noreferrer" target="_blank">http://www.unixarea.de/</a>  ☎ <a href="tel:%2B49-176-38902045" value="+4917638902045">+49-176-38902045</a><br>
</font></span></blockquote></div><br></div>