Revert "More fix"

This reverts commit af541800d922ba51b49492c8b7ee4631ba98ff21.
Revert "Another ugly hack"

This reverts commit bfb74df50c23e96d53bf1883cd869a185599ada8.
Revert "Query indefinitely"

This reverts commit 7f6b6c91d3a64f089fdc0fe9cebdd93e45bc66df.
Revert "Hopefuly fixes crash"

This reverts commit 79b21cd4cd6266fcb3bf85eb167cfb3401c55d00.
Revert "Fix crash"

This reverts commit 62fdf44d0d1710d8c677c2bc701cdf4fe15dc6ff.
Revert "Remove qdebug"

This reverts commit 41aded61c31b96031e0fb4f40129c646adc401c7.
Revert "Some speed optimizations, khm"

This reverts commit ca59fd7bc410cfd80dbfa26be8bf1e63e51ca086.
Revert "If we are in a subnet but no router, use the internal ip"

This reverts commit 4a196985654587d37c2e42c33bbc922957e10201.