Fix 'invalid server IP' when using a server alias

Bug report by TorchRJ_