title: How to handle socket error #10061 connection refused when Server is off in datasnap
body: <p>Hello I created a datasnap project, I wanna when server is off my dont have break exception and show a message and tell the server is not start</p>
  
  <p>please help me</p>
  
  <pre><code>IdHTTP := TIdHTTP.Create(nil);
    try
      try
         Result:= IdHTTP.Get(strServerUrl + strMethodUrl + Number+'/'+User);
      except
        on E: Exception do
        begin
          ShowMessage('The server Is not Start');
          Result:='';
        end;
  
      end;
    finally
      IdHTTP.Free;
    end;
  </code></pre>