I’m trying to use the UIPEthernet library using the ENC28J60 Ethernet Module, to connect to a server. Using the URL, it works fine. Using an IP address, it fails returning zero:
Works:
if (int result = client.connect(“www.google.com”,80))
Doesn’t work:
IPAddress myIP(216,58,198,100);
if (int result = client.connect(myIP, 80))
And yes, I have double-checked the IP address, pinged it, tried alternatives, etc.
I am simply using the TCPClient example which is part of the UIPEthernet release.
Any help would be appreciated!