title: Can't load image from my local server on Android
body: <p>I am trying to load an image from a server to show it in an ImageView <br/></p>
  
  <p>I used 
  
  <pre><code>    ImageView imgView = (ImageView) findViewById(R.id.ivProduct);
  
      Bitmap bitmap = null;
  
      try {
  
          URL urlImage = new URL(
                  "http://www.google.fr/intl/en_com/images/srpr/logo1w.png");
          HttpURLConnection connection = (HttpURLConnection) urlImage
                  .openConnection();
          InputStream inputStream = connection.getInputStream();
          bitmap = BitmapFactory.decodeStream(inputStream);
          imgView.setImageBitmap(bitmap);
      } catch (MalformedURLException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  
  }`
  </code></pre>
  
  <p>This worked fine but when I downloaded the same image on my server and I changed the url to</p>
  
  <pre><code>http://localhost:9527/market_helper/img_products/logo1w.png
  </code></pre>
  
  <p>It did not work.
  What is the problem ?</p>