PDA

View Full Version : Network Chat Client in a multihomed environment.



drescherjm
6th December 2010, 23:09
I am trying to debug why the network chat client example in Qt 4.6.X is only making connections on the primary NIC. Is this example supposed to work when I have more than 1 NIC / network? I am currently testing this in windows. Any ideas?


Edit:
I have verified that the PeerManager::sendBroadcastDatagram is being called for each subnet with the expected broadcast address.

Added after 14 minutes:

It appears that the subnetmask was wrong on at least 1 of my clients I was testing. One that I can not fix since I do not have admin rights on that machine. I will test this tomorrow on ones that I can fix.

drescherjm
7th December 2010, 17:28
Okay. It does work in a multi-homed network. It did not work when one client was on the same physical machine as the other but in virtualbox guest when VB was using NAT. It did not work on the machine with the wrong subnet mask which I can not fix. I am going to look into seeing if I can pass the correct broadcast address to the client with the bad subnet mask.