title: Login register android app cant coonect to local server (connection refused)
body: <p>This application registers users in a database. When I click the register button, I get <code>Connection Refused error</code> in my logs. </p>
  
  <p>My login and register localhost IP is : 127.0.0.1. I searched many websites and articles and they wrote >> you should change 127.0.0.1 to 10.0.2.2 but finally I didn't succeed. My emulator is Nox player.</p>
  
  <pre><code>    // Server user login url
  public static String URL_LOGIN = "http://127.0.0.1:80/android_login_api/login.php";
  
  // Server user register url
  public static String URL_REGISTER = "http://127.0.0.1:80/android_login_api/register.php";
  </code></pre>