Have you tried making the below change to the code to be independent of the IP address?
char server[] = "www.google.com";
//IPAddress server(198,105,251,46); // www.google.com
Have you tried making the below change to the code to be independent of the IP address?
char server[] = "www.google.com";
//IPAddress server(198,105,251,46); // www.google.com