• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

MulticastSocket simply hangs on receive()

 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wrote a very simple app to send/receieve from multicast sockets. It starts up fine and claims it has sent a message (the sender) but the receiver never comes out of receive. It just hangs forever, never printing a message. Any idea what's wrong?

Here's what I'm doing:

1. The receiver joins group "225.9.9.9:9045" and sits there listening
2. The sender joins group "234.6.6.6:4590" but sends a message to "225.9.9.9:9045," i.e. the receiver group.

What am i doing wrong?
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to "Sockets and Internet Protocols."
 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In case anyone's wondering, I figured this out. I had been told to install the "Windows Loopback Adapter" from Micorosft, so the laptop would act as though it were connected to a network, thus allowing multicasting. This does NOT work. I got nothing. On a whim, I attached an ethernet card that was not connected to anything -- it had no cable connected and it's not wireless. I also disabled Windows Looback Adapter. And it worked! All the laptop needs is an ethernet card; it doesn't need to be connected to anything. Weird.
 
Poop goes in a willow feeder. Wipe with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic