title: Connecting through TCP to 0.0.0.0 on Wi-Fi while the listener PC has active Wi-Fi and Ethernet doesn't work
body: <p>I'm creating a TCP connection from a device on Wi-Fi to a computer that's listening on port 0.0.0.0:44440.</p>
  
  <p>When I am only on Wi-Fi, the device is able to connect without a problem. When I enable / plug in Ethernet, the listener never accepts the device's connection request. (Wi-Fi is still connected throughout this process. Checked by ipconfig)</p>
  
  <p>I'm using C++, and the command looks like this:</p>
  
  <p><code>handle = (int)accept(listening_socket-&gt;handle, (struct sockaddr *)&amp;address, &amp;addrlen);</code></p>
  
  <p>The command gets a handle when a device connects if both are on Wi-Fi only, but continues blocking if the listener is on both Ethernet and Wi-Fi.</p>
  
  <p>0.0.0.0 is supposed to be interface-ambiguous, so it should accept connections from both Ethernet (192.168.x.x) and Wi-Fi (10.161.x.x), but it seems to 'attach' to the interface that is giving the best internet. Checking using "netstat -an", there is an active listener on 0.0.0.0:44440 using each method.</p>
  
  <p>Anyone a pro at networking and know why having multiple running interfaces messes with this?</p>
  
  <p>.</p>
  
  <p><strong>Extra Info</strong></p>
  
  <p>I have done many checks to make sure Wi-Fi and Ethernet are enabled. I am running a UDP broadcast over both interfaces that tells devices to connect to the local computer. So the broadcast contains a message of "192.168.x.x:44440" for devices running on local network and "10.161.x.x:44440" for devices running on Wi-Fi. The device picks up this message and then tries to form a TCP connection on "10.161.x.x:44440." When the computer is only connected through Wi-Fi, connecting like this works. When it's connected through both, the listener running on port 44440 never detects when the device connects. It will still connect local programs running on the same machine from either IP.</p>
  
  <p>Also note, my Ethernet is not the same network as my Wi-Fi (for security reasons). So each network has separate properties</p>