title: Issue with connecting Android phone to mac computer on the same wifi network
body: <p>I'm running a server on my macbook at port 5000. I have an Android application on my phone (on the same wifi network as my laptop) that needs to talk to the server on my laptop.</p>
  
  <p>On my laptop, when I type the following into my web browser I get the proper test page I created:</p>
  
  <p><code>http://localhost:5000/test</code></p>
  
  <p>Now, to get my computer's IP on my current wifi network I used the IP shown in the Network Preferences (on my computer it is 192.168.1.128). I also used the <code>ifconfig</code> command to verify this is the correct IP address.</p>
  
  <p>Now, when I visit the following on my computer, I get a generic "Cannot load this web page" error.</p>
  
  <p><code>http://192.168.1.128:5000/test</code></p>
  
  <p>When I make a request to that address in my Android application (again, the phone is on the same wifi network), I get:</p>
  
  <p><code>failed to connect to /192.168.1.128 (port 5000) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)</code></p>
  
  <p>Which is weird, as my server is still running - I run that localhost url from above to verify this.</p>
  
  <p>If it makes any difference, I'm using the StringRequest from <code>com.mcxiaoke.volley:library:1.0.+</code> and am only expecting "Hello, world" back. I don't at any step in the process deal with JSON, encoding or decoding, but it's just text so it should come through and print out on my Android phone.</p>
  
  <p>If it matters, here's the Android code:</p>
  
  <pre><code>RequestQueue queue = Volley.newRequestQueue(this);
  String url ="http://192.168.1.128:5000/test";
  System.out.println("Requesting...");
  StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
          new Response.Listener&lt;String&gt;() {
              @Override
              public void onResponse(String response) {
                  // TODO
                  System.out.println("++++++++++" + "onResponse()");
                  System.out.println("++++++++++" + response);
              }
          }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError error) {
                  // TODO
                  System.out.println("++++++++++" + "onError: " + error.getMessage());
              }
          });
  queue.add(stringRequest);
  </code></pre>