title: I receive isConnected failed: ECONNREFUSED (Connection refused)
body: <p>I wrote an Android WiFi-Direct application, based on google example. </p>
  
  <p>It works very well when the client phone the Samsung and the server is Xiaomi, but when I try to connect with the my Xiaomi to the Samsung server I receive the <code>WiFi socket failed java.net.ConnectException: failed to connect to /192.168.49.1 (port 8040) after 5000ms: isConnected failed: ECONNREFUSED (Connection refused)</code> error message. </p>
  
  <p>The WiFi-Direct connection is established, the toolbar icon appear, but I cannot create a socket. </p>
  
  <p>The google sample application works in both way. </p>
  
  <p>Any idea about what' s wrong?</p>