I'm talking to mapproxy web server through localhost on windows 7. The talker is my own WPF program. The target ip is and the server listens at When ANY adapter connects to anything the communications are super slow.

I have read through this and this where the answers point to editing hosts file which I tried but to no avail.

I tried installing a loopback adapter as instructed here which only made things worse as then an adapter was seen as connected and connection was super slow. I was thinking of defining a loopback adapter with a different loopback ip but the adapter dissapeared. Maybe I'll revisit this train of thought.

I have tried with both localhost and as the target IP and localhost, and on the receiver. They all work but end up slow when any adapter is connected.

I tried with hosts file to point both IPv4 and IPv6 localhost to the IPs (removed the comments) and tried IPv4 alone with IPv6 commented out. I tried everything again with restarts between each change.

I looked at the communications with wireshark and I see alot of NBNS queries. So the IP isn't found properly and Net Bios requests are sent out instead? Might be something with one of the libraries I use...

I'm abit stumped as to how solve this problem. Any ideas?

  • 3
    “When ANY adapter connects to anything the packets are routed through the network” – super unlikely. If you’re connecting to or ::1, this traffic will not leave the host. Ever. There must be something else going on. Use Wireshark to find out what. – Daniel B Jun 14 at 14:45
  • You are correct, the right packets arent leaving but a boat load of NBNS packets are instead. Not sure where they come from... – Karl Uibo Jun 19 at 12:02

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.