August 6, 2010

anumeval anumeval
Lab Rat
9 posts

How to run “Network chat client example” in QT demos ?

 

Can I use the Network chat client example to chat between multiple machines?

I am launching the “Network chat client example” in multiple machine connecten over the LAN network , But I don’t see the other client instance that has started. Is there any server configuration needed? Any links of the documentation will be helpful

Thanks in advance

5 replies

August 6, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

It should work without any specific configuration. Didn’t run it but source says that it uses broadcast messages so all recipients in network should receive them.

August 6, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

tried this on a few m/cs and find that those having the same qt version are able to connect with each other :) …. if the qt version was different, it wouldn’t connect.. have to dig further as to why

August 7, 2010

IrQX IrQX
Lab Rat
74 posts

anumeval wrote:
Can I use the Network chat client example to chat between multiple machines?

I am launching the “Network chat client example” in multiple machine connecten over the LAN network , But I don't see the other client instance that has started. Is there any server configuration needed? Any links of the documentation will be helpful

Thanks in advance

As an variant is: check firewall settings. Many firewalls by default blocks broadcast messaging.

August 7, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

when I tried, all machines were on the same subnet and using the same dhcp server for all network configuration, so some other issue

September 17, 2010

IrQX IrQX
Lab Rat
74 posts
chetankjain wrote:
when I tried, all machines were on the same subnet and using the same dhcp server for all network configuration, so some other issue

This isn’t firewall settings. Your firewall (such default windows firewall) might be blocking UDP traffic. If you using other OSes check their firewall settings

 
  ‹‹ Send special unicode characters via TCP socket?      Disabled QLineEdit Background Color ››

You must log in to post a reply. Not a member yet? Register here!