Localhost goes from 127.0.0.1 through 127.255.255.254. By binding each connection to a random IP in that range [1], one could get a better mileage.<p>[1]: <a href="https:&#x2F;&#x2F;idea.popcount.org&#x2F;2014-04-03-bind-before-connect&#x2F;" rel="nofollow">https:&#x2F;&#x2F;idea.popcount.org&#x2F;2014-04-03-bind-before-connect&#x2F;</a>