Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By martinayotte
#49658 There are to client.connect(), one with "const char *" and one with IPAddress, the first one will use DNS and second one will connect directly to IP.
In other words, you can NOT pass an IP as "const char *" to client.connect().

So, with IP inside a string, you should do :
Code: Select allIPAddress ip("192.168.4.99");
client.connect(ip, 80);