diff --git a/ipconnectivitychecker.ps1 b/ipconnectivitychecker.ps1
index 9b41e262230a45b79af124b981c9ae793b6d371d..78ee9a1deb129b5f49bc6f977f30265e32842d58 100644
--- a/ipconnectivitychecker.ps1
+++ b/ipconnectivitychecker.ps1
@@ -6,19 +6,23 @@
   if(!$wait)
   {
     $tcpclient.Close()
-    Return "Connection Timeout " + (Get-Date).ToString()
+	$global:pipelineFails=$true
+    Return "Connection Timeout at " + (Get-Date).ToString()
   }
   else
   {
     $error.Clear()
     $tcpclient.EndConnect($iar) | out-Null
-    if(!$?){Return $error[0]}
+    if(!$?){
+		$global:pipelineFails=$true
+		Return $error[0] + (Get-Date).ToString()
+		}
     $tcpclient.Close()
   }
   Return "ok"
 }
 
-$pipelineFails=$false
+$global:pipelineFails=$false
 echo "********************************"
 echo "    Checking IP connectivity    "
 echo "********************************"
@@ -27,10 +31,6 @@ $ips = @("132.252.182.129","132.252.182.130", "132.252.182.131", "132.252.182.13
 $port ="4443";
 foreach($ip in $ips){
     echo "$($ip):$port $(testport $ip -p $port)";
-    if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails) 
-    {
-        $pipelineFails=$true
-    } 
 }
 
 echo "=== UDE Data ==="
@@ -38,22 +38,15 @@ $ips = @("132.252.182.1", "132.252.182.2","132.252.182.3","132.252.182.4","132.2
 $port ="9021";
 foreach($ip in $ips){
     echo "$($ip):$port $(testport $ip -p $port)";
-    if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails) 
-    {
-        $pipelineFails=$true
-    }
 }
 
 
 echo "=== TUDO Management ==="
-$ips = @("129.217.149.130","129.217.149.131", "129.217.149.132","129.217.149.133","129.217.149.134","129.217.149.135", "129.217.149.136","129.217.149.137", "129.217.149.138", "129.217.149.160", "129.217.149.161", "129.217.149.162","129.217.149.163", "129.217.149.164", "129.217.149.165", "129.217.149.166", "129.217.149.167", "129.217.149.168")
+$ips = @("129.217.149.141","129.217.149.130","129.217.149.131", "129.217.149.132","129.217.149.133","129.217.149.134","129.217.149.135", "129.217.149.136","129.217.149.137", "129.217.149.138", "129.217.149.160", "129.217.149.161", "129.217.149.162","129.217.149.163", "129.217.149.164", "129.217.149.165", "129.217.149.166", "129.217.149.167", "129.217.149.168")
 $port ="4443";
 foreach($ip in $ips){
     echo "$($ip):$port $(testport $ip -p $port)";
     if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails) 
-    {
-        $pipelineFails=$true
-    }
 }
 
 echo "=== TUDO Data ==="
@@ -62,9 +55,6 @@ $port ="9021";
 foreach($ip in $ips){
     echo "$($ip):$port $(testport $ip -p $port)";
     if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails) 
-    {
-        $pipelineFails=$true
-    }
 }
 
 echo "$pipelineFails"