switches requests method for finding ip