fix a problem with the server behind a router.
related to #34 and https://issues.kolab.org/show_bug.cgi?id=3573