
| Subject: | Multicast problem with multiple NICs - IdIPMCastClient / IdIPMCastServer |
| Posted by: | Karsten Saunte |
| Date: | Mon, 31 Aug 2009 |
We (try) to communicate with some linux devices (that only have 1 nic) using multicast.
This works fine when the host (Windows PC) has only 1 nic.
If it has more than one NIC it might work, and if it doesn't you can disable the not used NICs then reenable. I assume this will shuffle the order so that the good NIC gets on top so that it works.
But does anyone have an idea of where to start / what to look for
We simply send a message out and expect to see an answer back.
Using Indy 10 / Delphi 2007.
This is our code to open the client and the server:
IdIPMCastClient:= TIdIPMCastClient.Create(nil);
IdIPMCastClient.MulticastGroup:=TMulticastGroup;
IdIPMCastClient.DefaultPort:=TMulticastPort;
IdIPMCastClient.OnIPMCastRead:=IdIPMCastClientIPMCastRead;
IdIPMCastClient.Active:=true;
IdIPMCastServer:= TIdIPMCastServer.Create(nil);
IdIPMCastServer.MultiCastGroup:=TMulticastGroup;
IdIPMCastServer.Port:=TMultiCastPort;
IdIPMCastServer.TimeToLive:=2;
IdIPMCastServer.Active:=true;