Create HTTP Connection with ethernet shield Arduino Uno

I am trying to connect server using server IP and port ,But when execute client.connect(server, 80) function then it return 0...
So please any one help me
Ethernet shield model : W5100
Arduino Uno

#include <Ethernet.h>
#include <SPI.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 172, 16, 0, 35 };
byte server[] = { 172, 16, 0, 22 }; // other available IP system in lan

EthernetClient client;

void setup()
{
Ethernet.begin(mac, ip);
Serial.begin(9600);

delay(1000);

Serial.println("connecting...");

int clientStatus =client.connect(server, 80)
Serial.println("ClientStatus :");
Serial.println(clientStatus);

if (clientStatus == 1) {
Serial.println("connected");
client.println("GET /webApi/values HTTP/1.1");
client.println(Host: 172.16.0.22);
} else {
Serial.println("connection failed");
}
}

void loop()
{
if (client.available()) {
char c = client.read();
Serial.print(c);
}

if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
client.stop();
for(;:wink:
;
}
}

the WebClient example of the latest version 2.00 of the Ethernet library does work?

Juraj:
the WebClient example of the latest version 2.00 of the Ethernet library does work?

Yes working but not connect to server..

Serial Monitor Response as shown below

Initialize Ethernet with DHCP:
Failed to configure Ethernet using DHCP
connecting to 172.16.0.32...
connection failed

disconnecting.
Received 0 bytes in 0.0000, rate = 0.00 kbytes/second

did you connect the ethernet cable to a router or switch? because a connection to computer is not so simple

Is your computer/router acting as a DHCP server?

Juraj:
did you connect the ethernet cable to a router or switch? because a connection to computer is not so simple

We are using Switch

if you have an SD card inserted in the shield, remove it

PaulS:
Is your computer/router acting as a DHCP server?

thank you for giving response
We are not using DHCP server, only used static IP
But when we create DHCP server using Router then it retuns success