Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help! How to setup an environment to use MulticastSocket?  RSS feed

 
Adrian Stephan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to test the following code:
InetAddress group = InetAddress.getByName("228.5.6.7");
MulticastSocket s = new MulticastSocket(6789);
s.joinGroup(group);

In order to run it, I need to set up a multicast group which has IP address 228.5.6.7. I don't have a router here and I am running windows. Is there anyway to set up a "virtual" environment so I can run the code above?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!