This function allows you to connect to the IP address and port specified in the constructor. The return value indicates success or failure. connect() also supports DNS lookups when using a domain name (ex:google.com).
client.connect(ip, port) client.connect(URL, port)
- ip: the IP address that the client will connect to (array of 4 bytes)
- url: the domain name the client will connect to (string, ex.:"arduino.org")
- port: the port that the client will connect to (int)