I can't upload codes to my ESP8266 ,this is the error I encounter when i try to upload my code
#include &lt;ESP8266WiFi.h&gt;
#include &lt;ESP8266WiFiMulti.h&gt;

#ifndef STASSID
#define STASSID &quot;your-ssid&quot;
#define STAPSK  &quot;your-password&quot;
#endif

const char* ssid     = STASSID;
const char* password = STAPSK;

const char* host = &quot;192.168.1.1&quot;;
const uint16_t port = 3000;

ESP8266WiFiMulti WiFiMulti;

void setup() {
  Serial.begin(115200);

  // We start by connecting to a WiFi network
  WiFi.mode(WIFI_STA);
  WiFiMulti.addAP(ssid, password);

  Serial.println();
  Serial.println();
  Serial.print(&quot;Wait for WiFi... &quot;);

  while (WiFiMulti.run() != WL_CONNECTED) {
    Serial.print(&quot;.&quot;);
    delay(500);
  }

  Serial.println(&quot;&quot;);
  Serial.println(&quot;WiFi connected&quot;);
  Serial.println(&quot;IP address: &quot;);
  Serial.println(WiFi.localIP());

  delay(500);
}


void loop() {
  Serial.print(&quot;connecting to &quot;);
  Serial.print(host);
  Serial.print(':');
  Serial.println(port);

  // Use WiFiClient class to create TCP connections
  WiFiClient client;

  if (!client.connect(host, port)) {
    Serial.println(&quot;connection failed&quot;);
    Serial.println(&quot;wait 5 sec...&quot;);
    delay(5000);
    return;
  }

  // This will send the request to the server
  client.println(&quot;hello from ESP8266&quot;);

  //read back one line from server
  Serial.println(&quot;receiving from remote server&quot;);
  String line = client.readStringUntil('\r');
  Serial.println(line);

  Serial.println(&quot;closing connection&quot;);
  client.stop();

  Serial.println(&quot;wait 5 sec...&quot;);
  delay(5000);
}
Try updating the Serial Driver in your system or try using lesser baud rate, i.e. 9600 instead of 115200.