Results 1 to 3 of 3

Thread: Multicasting--Not able to Do it, suggestion pls

  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Multicasting--Not able to Do it, suggestion pls

    hi ppl,
    I am trying to write a Multicast sender and receiver application. the setup is: 1 server, with 20 clients, connected with hub/switch. i wrote the multicasting sender application as normal (with UDP socket) sender with a multicast address group and a port. and the receiver with again UDP receiver but with multicast subscription by joining multicast group as explained in some of the posts earlier.

    the problem is: when i execute the sender, its saying 'Network Error', Network not reachable.

    whats the problem? initially, i tried with HUB as an interconnecting unit.
    my question is: for multicasting in a network, do i need to have a router/ switch? do i have to make any changes in the router/switch? HUB will not support multicasting? What should i do to achieve multicasting in my small n/w?

    i tried, with QUdpSocket as well as with plain unix sockets (with socket, bind, setsocketopt,recvfrom,sendto).
    pls post ur suggestions, or if possible, post example code for multicast sender and receiver, in plain unix sockets or Qt Code.

    my environment is: Qt-4.4.3, RHEL4/ Windows XP.

    thanks in advance. bye
    swamy.

  2. #2
    Join Date
    Jul 2008
    Posts
    47
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Multicasting--Not able to Do it, suggestion pls

    Is your firewall in the way?

  3. #3
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Multicasting--Not able to Do it, suggestion pls

    hi,
    thanks for ur reply. actually, the problem is solved by configuring the NIC, its like this:

    It is relatively simple to configure what interface multicast packets are to be sent out on. What is needed is a default route for multicast traffic specifying the interface.
    To do this enter the following command in a terminal:


    route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0


    The above command will route all multicast traffic out through interface eth0. To confirm the route took effect and was added to your routing table run route -n.

    for more information, pls goto:
    http://www.tldp.org/HOWTO/Multicast-HOWTO.html

    bye
    swamy

Similar Threads

  1. suggestion for using strlen()
    By joseph in forum General Programming
    Replies: 3
    Last Post: 15th September 2008, 19:34
  2. Printing suggestion
    By Raccoon29 in forum Newbie
    Replies: 0
    Last Post: 22nd April 2008, 09:14
  3. porting qt3 to qt4? ny suggestion?
    By oob2 in forum Qt Programming
    Replies: 4
    Last Post: 25th October 2007, 17:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.