Results 1 to 2 of 2
  1. #1
    Vishwanath is offline Member
    Join Date
    May 2011
    Rep Power

    Unhappy Multicast receive not happening in multiple interface or multi NIC

    Hi All,
    I have a machine with two NICs. One is present in a subnet (eth0), and the other NIC is exposed to a private network(eth1). The default interface is eth0. Now, if I send a multicast request through some protocol say, SLP, the multicast socket.receive method is not accepting any datagram packet through the non-deault interface. I tried setting the network interface and interface explicitly. but this is not helping. The receive method is blocked and not receiving any datagrams. Help would be appreciated to receive the datagrams in the non-default interface.

  2. #2
    Mrc0d3r's Avatar
    Mrc0d3r is offline Member
    Join Date
    Jun 2011
    TCP/IP Layer 3
    Rep Power


    If you are trying it through Java's core networking packages then, it may not be possible. When I had a requirement to do some handling over the packets ( which is eventually not possible with Java ) I came across third-party libraries called Jpcap. They help in monitoring packet flow, capturing them, managing NIC's etc. You can try them at Jpcap - a Java library for capturing and sending network packets

    These libraries help you in listing out the NIC's and selecting one in order to use it.
    Last edited by Mrc0d3r; 06-07-2011 at 07:27 AM.

Similar Threads

  1. I don't know what is happening
    By Fred1 in forum New To Java
    Replies: 2
    Last Post: 04-27-2011, 11:21 PM
  2. Multiple GUI Interface Instances
    By mutagen in forum AWT / Swing
    Replies: 2
    Last Post: 03-19-2011, 03:06 PM
  3. Interface to connect multiple databases
    By sruz in forum Advanced Java
    Replies: 1
    Last Post: 11-04-2009, 03:20 PM
  4. Multicast group seems to be a noop
    By toadaly in forum Advanced Java
    Replies: 0
    Last Post: 04-10-2009, 06:31 AM
  5. Replies: 0
    Last Post: 12-02-2008, 10:55 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts