title: E/adbd: failed to connect to socket 'localabstract:com.example.talls.networkstest': Connection refused
body: <p>I have recently started out in Android and started to use sockets. But, the moment I run my program, 
  <strong>E/adbd: failed to connect to socket 'localabstract:com.example.talls.networkstest': Connection refused</strong>
  This message appears. </p>
  
  <p>Below is my code:</p>
  
  <pre><code>package com.example.talls.tcpserver;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.text.format.Formatter;
  import android.util.Log;
  import android.widget.TextView;
  
  import java.net.ServerSocket;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
          Thread thread = new Thread(new ServerThread());
          thread.start();
      }
  
      class ServerThread implements Runnable {
          public void run(){
              TextView text = findViewById(R.id.serverip);
              try {
                  ServerSocket ss = new ServerSocket(8080);
                  text.setText(ss.getLocalSocketAddress().toString());
                  ss.accept();
              }
              catch (Exception e){
              }
  
          }
  
      }
  }
  </code></pre>
  
  <p>Below is my Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.talls.tcpserver"&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity android:name=".MainActivity"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Additional log:
  <a href="https://drive.google.com/open?id=1cNiiWThHi5k4ttQkmABA0H3O1HP5eIwk" rel="nofollow noreferrer">https://drive.google.com/open?id=1cNiiWThHi5k4ttQkmABA0H3O1HP5eIwk</a></p>
  
  <p>Phone used:
  Google Pixel XL2
  Samsung S9</p>
  
  <p>Both phones gave the same error message;
  E/adbd: failed to connect to socket 'localabstract:com.example.talls.networkstest': Connection refused</p>