Ethernet Shield client.connect does work. it returns 0 .

I have problem my ethernet shield . i didnt solve it.i research somuch but i didnt find helpful anything.
İf someone help me i will be pleased.My code is

#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };


IPAddress host(192 ,168, 1, 2 );//it is my local host

int serverPort = 80;

EthernetClient client;
  const int httpPort = 80;
void setup() {
  Serial.begin(9600);
  
      if  (!Ethernet.begin(mac)){
        while(true);
        
      }
      else{
        
     
    Serial.println(Ethernet.localIP());
   }
  
}

void loop() {
  delay(6000);
  int a =client.connect(host,httpPort);

Serial.println(a);
  client.stop();
}

moreover itried bridge wifi and ethernet and i want to use like it but it doesnt work when they bridge with wifi , i tiried connect google but it doesnt work thanks again