Can't connect to external web page

The WiFi Rev 2 board connects to WiFi fine. I can create a little server and access it inside my firewall from a browser so that all works but I can't access external websites from the WiFi Rev 2 board.

Code like this always fails:

  WiFiClient client;

   
  if(client.connect("www.google.com", 80))
      Serial.println("client connected") ; 
  else
      Serial.println("client connect failed") ;

Similar code on a wired Ethernet board works fine. Has anyone got access to an external website working on the WiFi Rev 2 board?

There is some guidance here but it doesn't work for me: https://www.arduino.cc/en/Reference/WiFiNINAClient

It looks like I already went down this rat hole and the solution is to specify more of the connection details like this:

IPAddress ip(192, 168, 0, 50);     
IPAddress dns(8, 8, 8, 8);           //Google dns 
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);

WiFi.config(ip, dns, gateway, subnet);
status = WiFi.begin(ssid, pass);
...

Once I do that external websites are accessible.