Rewrote lookup part

Is now looking up in 6 threads. It also handles the fact, that the server isn't always running on the same port, better.