changed function Server::getIp(), make better server part