try multiple times to get the ip