Rescue NoMethodError to handle using .first on nil in get_server_ip.