title: Why public IP receive from volley different from browser?
body: <p>i managed to create an android apps which able to get the device public ip via volley.Im using this website, <a href="http://v4.ipv6-test.com/api/myip.php" rel="nofollow noreferrer">http://v4.ipv6-test.com/api/myip.php</a>. </p>
  
  <p>When i browse the website using the browser, i get this ip 64.233.173.15 but when i request it using volley, it return this ip 123.136.111.227. </p>
  
  <p>I already tried the following but failed:</p>
  
  <ul>
  <li><p>Use different website for volley</p></li>
  <li><p>Host own script to get public ip</p></li>
  </ul>
  
  <p>What happen? What can i do to return the same ip as the browser?</p>
  
  <h1>EDITED 1</h1>
  
  <p><strong>IpResolver Class</strong></p>
  
  <pre><code>public class PublicIPResolver {
  
      public static void getIPV4(Context context, Response.Listener&lt;String&gt; ip, Response.ErrorListener errorListener)
      {
          RequestQueue queue = Volley.newRequestQueue(context);
          String url ="http://beta.oligococo.tk/api/ipv4.php";
          // Request a string response from the provided URL.
          StringRequest stringRequest = new StringRequest(Request.Method.GET, url, ip,errorListener);
          // Add the request to the RequestQueue.
          queue.add(stringRequest);
      }
  }
  </code></pre>
  
  <p><strong>Listener</strong></p>
  
  <pre><code>PublicIPResolver.getIPV4(GooglePlayService.this, new Response.Listener&lt;String&gt;() {
              @Override
              public void onResponse(String ipv4) {
                  Toast.makeText(GooglePlayService.this, "IP Resolved! n my ip is : " +ipv4, Toast.LENGTH_LONG).show();
                  myPref.saveToPref("Got_Internet","true");
                  myPref.saveToPref("MyIP",ipv4);
              }
          }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError volleyError) {
                  Toast.makeText(GooglePlayService.this,volleyError.getMessage(),Toast.LENGTH_SHORT).show();
                  myPref.saveToPref("Got_Internet","false");
                  myPref.saveToPref("MyIP","");
              }
          });
  </code></pre>
  
  <h1>Edit 2</h1>
  
  <p>I tried to track the source of ip via google and its turn out to be my ISP.  Am i inside their LAN or what? But why browser able to show this ip 64.233.173.15 but when i request it using volley, it return this ip 123.136.111.227. </p>
  
  <p><a href="https://ipinfo.io/123.136.107.48" rel="nofollow noreferrer">https://ipinfo.io/123.136.107.48</a></p>