 
   // Use WiFiClient class to create TCP connections
   WiFiClient client;
-  const int httpPort = 1337;
+  const int httpPort = 80;
   if (!client.connect(host, httpPort)) {
     Serial.println("connection failed");
     return;

#include <ESP8266WiFi.h>

const int ledPin =  14; 
const char* ssid     = "Fantabulous_G";  //local network
const char* password = "adf1234567";
const char* host = "192.168.0.101"; //development server
const char* privateKey = "ZXC123";

int onOffStatus = 0;

      return;
    }
  }
  String line;
  while(client.available()){
    line = client.readStringUntil('\r');
    line.trim();
    Serial.println(line);
  }
  client.stop();
  if (!client.connect(host, httpPort)) {
    Serial.println("connection failed");
    return;
  }

  
  delay(1000);

  
  // This will send the request to the server
  client.print(String("GET ") + url + " HTTP/1.1\r\n" +
               "Host: " + host + "\r\n" + 
               "User-Agent: test\r\n"+
               "Connection: close\r\n\r\n");
  //unsigned long timeout = millis();
  while (client.available() == 0) {
    if (millis() - timeout > 5000) {
      //Serial.println(">>> Client Timeout !");
      client.stop();
      return;
    }
  }
  
   //String line;

  // Read all the lines of the reply from server and print them to Serial
  while(client.available()){
    line = client.readStringUntil('\r');
    line.trim();
    Serial.println(line);
  }

  if(line.equals("true")){
