Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6938471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:29:53+00:00 2026-05-27T12:29:53+00:00

For some reason, every multicast example I run (the computer runs OpenSUSE Linux) will

  • 0

For some reason, every multicast example I run (the computer runs OpenSUSE Linux) will work. The clients all just sit silently. How do I figure out why the multicast is being blocked/ignored?

Some of the examples:

EXAMPLE 1

http://www.roseindia.net/java/example/java/net/udp/UDPMulticastServer.java

Example 2

http://docs.oracle.com/javase/tutorial/networking/datagrams/broadcasting.html
(uses these files:)
http://docs.oracle.com/javase/tutorial/networking/datagrams/examples/MulticastServer.java
http://docs.oracle.com/javase/tutorial/networking/datagrams/examples/MulticastServerThread.java
http://docs.oracle.com/javase/tutorial/networking/datagrams/examples/MulticastClient.java
http://docs.oracle.com/javase/tutorial/networking/datagrams/examples/one-liners.txt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:29:54+00:00Added an answer on May 27, 2026 at 12:29 pm

    When troubleshooting IP multicast, there are some big-picture things you can do to isolate whether this is a host issue, software issue, or network issue:

    • Step 1: Ensure the receiver is sending IGMP group joins on the correct interface. Look for the multicast source’s traffic on the receiver’s interface.
    • Step 2: Ensure the server is sending traffic on the proper multicast group out the correct interface
    • Step 3: Perform something like a ping test for IP multicast (using linux’s socat tool)

    The details for each step are outlined below…

    Step 1

    First, ensure that the linux multicast receivers are correctly advertising their group membership reports; keep in mind that a lot of things in multicast work backwards from unicast. For instance, multicasting requires that you send an IGMP join packet that contains the multicast group you want to receive.

    Use tcpdump or tshark to examine the interface in question… In the example below, I have a machine on 192.168.12.238 that is announcing (via igmp) that it wants to receive multicast traffic from 239.255.0.1

    [mpenning@Finger ~]$ sudo tshark -n -V -i eth0 igmp
    Running as user "root" and group "root". This could be dangerous.
    Capturing on eth0
    Frame 1 (54 bytes on wire, 54 bytes captured)
        Arrival Time: Dec  6, 2011 09:08:45.156782000
        ... >snip< ...
    Internet Protocol, Src: 192.168.12.238 (192.168.12.238), Dst: 224.0.0.22 (224.0.0.22)
        Version: 4
        Header length: 24 bytes
        Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00)
            1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
            .... ..0. = ECN-Capable Transport (ECT): 0
            .... ...0 = ECN-CE: 0
        Total Length: 40
        Identification: 0x0000 (0)
        Flags: 0x02 (Don't Fragment)
            0.. = Reserved bit: Not Set
            .1. = Don't fragment: Set
            ..0 = More fragments: Not Set
        Fragment offset: 0
        Time to live: 1
        Protocol: IGMP (0x02)
        Header checksum: 0x3663 [correct]
            [Good: True]
            [Bad : False]
        Source: 192.168.12.238 (192.168.12.238)
        Destination: 224.0.0.22 (224.0.0.22)
        Options: (4 bytes)
            Router Alert: Every router examines packet
    Internet Group Management Protocol
        [IGMP Version: 3]
        Type: Membership Report (0x22)
        Header checksum: 0xe9fd [correct]
        Num Group Records: 1
        Group Record : 239.255.0.1  Change To Exclude Mode
            Record Type: Change To Exclude Mode (4)
            Aux Data Len: 0
            Num Src: 0
            Multicast Address: 239.255.0.1 (239.255.0.1)
    
    ^C1 packet captured
    

    Now check and see whether the multicast source’s traffic is getting to this interface (I’m assuming it was eth0, below):

    sudo tshark -n -i eth0 ip and host 239.255.0.1
    

    If you see traffic sent to the proper multicast group, then proceed directly to Step 3; otherwise go to Step 2.

    Step 2

    Next ensure that your multicast server is sending the traffic to the correct group. In the example below, I run a command to sniff eth0 for traffic sent to 239.255.0.1.

    [mpenning@hotcoffee Models]$ sudo tshark -n -i eth0 ip and host 239.255.0.1
    
    1.466991 192.168.12.236 -> 239.255.0.1  UDP Source port: 11111  Destination port: 11111
    

    If the multicast source is sending traffic to the right group here in Step 2, you saw IGMP group joins in Step 1, and Step 1 did not see traffic at the multicast receiver’s interface, then contact your network administrators about this problem.

    Step 3

    Assuming all that works, and you still want an acid test in case your multicast receiver software is somehow discarding multicast it receives from the IP stack… make sure you have socat installed on your machine and do the following…

    On the multicast sender (server), use this command to send test multicast packets to 239.255.0.1:

    perl -e '$ii=0; while (1) { print "hi number $ii\n"; $ii++; }' | socat - UDP-SENDTO:239.255.0.1:11111,sp=11111
    

    On the multicast receiver (client), use this command to listen to test multicast packets sent to 239.255.0.1 on eth0:

    socat - UDP-DATAGRAM:239.255.0.1:11111,bind=:11111,ip-add-membership=239.255.0.1:eth0
    

    Assuming your network administrators are allowing multicast on 239.255.0.1, you will see a lot of traffic like this in the multicast receiver’s terminal window:

    hi number 212289
    hi number 212290
    hi number 212291
    hi number 212292
    hi number 212293
    hi number 212294
    hi number 212295
    hi number 212296
    hi number 212297
    hi number 212298
    

    NOTE: do not try this with a multicast group address that is already in production use on your network.

    Step 4

    If steps 1, 2, and 3 reveal that multicast traffic is being sent and received through your network, then call up the software developer and tell them you think there is a problem with the application and explain the steps you have taken so far.

    If steps 1, 2, or 3 do not work, reconfigure your software / hosts / network until they do. Warning, multicast in IP networks is 3x harder to implement correctly than IP unicast.

    Best of luck to you…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i run a cron job every night, but for some reason, it is saying
I have 1 cronjob that runs every 60 minutes but for some reason, recently,
I use git all the time and for some reason now every time i
For some reason, every time I run my Iphone App, the App works fine
I've just tried the daterangepicker and for some reason it uses every form and
For some reason every 3-5 days our web app loses the ability to open
For some reason every time I try to count the number of rows in
well for some strange reason IE gives me and InvalidAuthenticityToken error almost every time
For some reason, Section 1 works but Section 2 does not. When run in
I have a web-application which uses hibernate and for some reason every thread (httprequest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.