Big bug in Tethering components !

Big bug in Tethering components  !

I've installed VirtualBox on my PC, so I have 2 IP address:
192.168.0.54 on my Wifi adapter
192.168.56.1 on the "VirtualBox Host-Only Network" adapter.

when I start the PhotoWall client on Android it broadcast an UDP message: hello ! I'm 192.168.0.27 on port 2020 !

the Server connect to the client and sends the reply: Your welcome, I'm  192.168.56.1 on port 2020 !

And Android will never connect back to the server !

Comments

  1. Your two IPs are on different subnets. Check the section called "Connecting to Applications Outside Your Subnet". http://docwiki.embarcadero.com/RADStudio/XE8/en/Connecting_to_Remote_Applications_Using_App_Tethering

    ReplyDelete
  2. Eli M no, 192.168.0.54 and 192.168.0.27 are on the same network, but the Manager send a wrong address to the client because it just peek a random one.

    ReplyDelete
  3. Possibly subnet mask problems on the server?

    ReplyDelete
  4. no, it is definitely a bug, my PC has 2 adapter and 2 addresses with 2 subnet mask.
    tcpview shows that the binding is made on INADDR_ANY, but when Android broadcasts a message from the 192.168.0.x subnet, the server should send it's address on this subnet, not the other.

    ReplyDelete
  5. Just looking at this (havent used those thigies yet) i think you found a bug or deficit. All serious servercomponents i have used have a binding property for the case when you have two cards.

    ReplyDelete
  6. This problem is encountered quite often. For example, I needed to enable Hyper-V so that I can debug Windows Store Apps and Windows Phone Apps. (Since then I have the two adapters.)

    ReplyDelete
  7. Oh the virtues of replying who you're really connected to...

    ReplyDelete
  8. In fact, I've made my own Discovery component (I've asked about Android UDP broadcast some time ago), and to handle multiple adapters, I create a socket per local address and broadcasts each network separately, that works very well.

    ReplyDelete

Post a Comment