T
tricky
Hi all,
I have a question. I need to create multicast socket but on more then
one interface. I try to do this but unfortunetly it is setup only on one
interface ?
Do a need different ip (group ) per each interface or maybe port or maybe
it's impossible ?
port and ip is the same per each interface
During iterations setInterface() is invoked
public void setInterface(NetworkInterface i){
try {
logger.info("MulticastAnnouncer");
this.address = InetAddress.getByName(defaultIP);
this.socket = new MulticastSocket(port);
this.socket.setNetworkInterface(i);
this.socket.joinGroup(this.address);
I have a question. I need to create multicast socket but on more then
one interface. I try to do this but unfortunetly it is setup only on one
interface ?
Do a need different ip (group ) per each interface or maybe port or maybe
it's impossible ?
port and ip is the same per each interface
During iterations setInterface() is invoked
public void setInterface(NetworkInterface i){
try {
logger.info("MulticastAnnouncer");
this.address = InetAddress.getByName(defaultIP);
this.socket = new MulticastSocket(port);
this.socket.setNetworkInterface(i);
this.socket.joinGroup(this.address);