title: Glide failed to load resource
body: <p>I have problem when want to load image from server using <code>glide</code></p>
  
  <p><strong>this is my code</strong></p>
  
  <pre><code>Glide.with(ImagePreviewActivity.this).load(path).into(img);
  </code></pre>
  
  <p><strong>and this is the logcat :</strong></p>
  
  <pre><code>W/Glide: Load failed for 
  http://localhost/AndroidFileUpload/file/IMG_20171128_153602.JPEG with size 
  [720x1120]
                                                      class 
  com.bumptech.glide.load.engine.GlideException: Failed to load resource
                                                        Cause (1 of 1): class 
  com.bumptech.glide.load.engine.GlideException: Fetching data failed, class 
  java.io.InputStream, REMOTE
                                                          Cause (1 of 1): 
  class com.bumptech.glide.load.engine.GlideException: Fetch failed
                                                            Cause (1 of 1): 
  class java.net.ConnectException: failed to connect to localhost/127.0.0.1 
  (port 80) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
  </code></pre>
  
  <p>How to fix this problem ? Any suggestion would be appreciated thank you.</p>