Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, first you should add a condition check to know if the Arduino think it worked or not:</p> <pre><code>if (client.connect(...)) { /* Stuff you do on success */ } else { Serial.println("failure! :-(") } </code></pre> <ul> <li>If it does print <code>failure!</code> you got a network configuration problem on the Arduino side. If it does work, the problem is after the Arduino.</li> </ul> <p>Then try opening a server with <code>nc -kl 42000</code> and change the port you connect to on <code>42000</code> in the Arduino <a href="http://www.arduino.cc/en/Tutorial/Sketch" rel="nofollow">sketch</a>, to be sure whether the network connection works.</p> <ul> <li>If it does work, then you've got a problem on your host side (the webserver), if it does not, you may have a problem on the network between the Arduino and the host.</li> </ul> <p>You should then try to connect to a server's <a href="http://en.wikipedia.org/wiki/IP_address" rel="nofollow">IP address</a> instead of a <a href="http://en.wikipedia.org/wiki/Fully_qualified_domain_name" rel="nofollow">fully qualified domain name</a> (FQDN). If that works, it may be the DNS server that is unreachable, and you should try to use <code>8.8.8.8</code> instead (or your local network's DNS server).</p> <p>Also check that the IP address you're using is indeed free of use (and not assigned by a <a href="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol" rel="nofollow">DHCP</a> or used by another computer), as well as the <a href="http://en.wikipedia.org/wiki/MAC_address" rel="nofollow">MAC address</a> is really unused... (addresses like <code>{0xDE,0xAD,0xBE,0xEF,0xFE,0xED}</code> tend to be used a lot in hacks...).</p> <p>My opinion, is that your bug is the DNS server that is unreachable, as there's no DNS resolver opened on <code>4.4.4.4</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload