Allows connections trough hostname in case ip can't be resolved (Fixes #46)