how to auto reconnect client and retry if disconnected ethernet module (w5100)

Hii all,I am just sending hello world to the tcp port ...my question is that if there is no client, arduino
remains idle untill next manual reset or restarting serial monitor ..i want to make arduino to retry automaticially untill client connected ?how can i do it?

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

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
};
IPAddress ip(192, 168, 10, 11);

// Enter the IP address of the server you're connecting to:

//IPAddress server(182,74,194,42);
//203.123.32.27
IPAddress server(192,168,10,236);
IPAddress gateway( 192,168,10,3 );
IPAddress subnet( 255,255,255,0 );
IPAddress dns1( 59,144,127,16);
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 23 is default for telnet;
// if you're using Processing's ChatServer, use port 10002):
EthernetClient client;

void setup() {
  // start the Ethernet connection:
Ethernet.begin(mac, ip,dns1,gateway,subnet);
 //   Ethernet.begin(mac, ip);
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  // give the Ethernet shield a second to initialize:
  delay(1000);
  Serial.println("connecting...");

  // if you get a connection, report back via serial:
  if (client.connect(server, 11000)) {
    Serial.println("connected");
  } else {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}

void loop() {
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

 
  
    if (client.connected()) {

      client.print("Hello World");
      delay(5000);
    
  }
  

  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    // do nothing:
    while (true);
  }
}

Instead of your

while (true);

reconnect as you do in the setup().