title: ADB: "failed to connect to '192.168.x.x:5555': Connection refused" tried both USB and Wifi
body: <p>On my <code>pixel3a</code> phone running <code>Android Pie</code>, I tried to adb connect to the phone using my macbook pro and it gave me a connection refused error </p>
  
  <blockquote>
    <p>"failed to connect to '192.168.xx.xxx:5555': Connection refused".  </p>
  </blockquote>
  
  <p>My macbook can adb connect to my other Android Pie and Oreo devices, therefore, I think the problem might be on the pixel3a phone side.  </p>
  
  <p>I'm guessing the debugging services is not running or somehow blocked on pixel3a which is why I keep getting connection refused.</p>
  
  <p>NOTE: developer mode has been turned on and debugging over USB option has been turned on as well.  </p>
  
  <p>Anyone ran into similar issue? Thanks.</p>
  
  <p>Btw, I tried to:</p>
  
  <ol>
  <li>restart macbook and pixel3a.  </li>
  <li>connect through USB and Wifi.  </li>
  <li>look through to see if there is any app with the open port 5555 on the phone but none found.</li>
  <li>see if there is anything open that looks like an adb debug using other ports than 5555 but don't see anything that looks like it. </li>
  <li>turn off the developer/debugging mode then turn it back on again but still not working</li>
  </ol>
  
  <p>p.s. I just got the phone and enabling the developer mode was the first thing I did.  I did not install any firewall or other apps besides the network monitor apps after I see the connection refuse error.</p>