title: Can connect with ping but not curl
body: <p>I am testing connecting to a remote server from my local machine. Using ping I can successfully connect but if I try with curl it just hangs:</p>
  
  <p><strong>Working with ping:</strong></p>
  
  <pre><code>$ ping db-machine-02
  Pinging db-machine-02.comp.org [xxx.xx.x.xxx] with 32 bytes of data:
  Reply from xxx.xx.x.xxx: bytes=32 time=12ms TTL=51
  Reply from xxx.xx.x.xxx: bytes=32 time=12ms TTL=51
  Reply from xxx.xx.x.xxx: bytes=32 time=12ms TTL=51
  Reply from xxx.xx.x.xxx: bytes=32 time=12ms TTL=51
  
  Ping statistics for xxx.xx.x.xxx:
      Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
  Approximate round trip times in milli-seconds:
      Minimum = 12ms, Maximum = 12ms, Average = 12ms
  </code></pre>
  
  <p><strong>Fails/timeout with curl:</strong></p>
  
  <pre><code>$ curl -v db-machine-02
  * STATE: INIT =&gt; CONNECT handle 0x600077108; line 1332 (connection #-5000)
  * Added connection 0. The cache now contains 1 members
  * STATE: CONNECT =&gt; WAITRESOLVE handle 0x600077108; line 1373 (connection #0)
  *   Trying xxx.xx.x.xxx:80...
  * TCP_NODELAY set
  * STATE: WAITRESOLVE =&gt; WAITCONNECT handle 0x600077108; line 1452 (connection #0)
  * Connection timed out after 300181 milliseconds
  * multi_done
  * Closing connection 0
  * The cache now contains 0 members
  curl: (28) Connection timed out after 300181 milliseconds
  </code></pre>
  
  <p>Why can I connect with <code>ping</code> command but not with <code>curl</code> command?</p>