diff --git a/EEIP.NET/EIPClient.cs b/EEIP.NET/EIPClient.cs index aa0acb9..670ca73 100644 --- a/EEIP.NET/EIPClient.cs +++ b/EEIP.NET/EIPClient.cs @@ -556,8 +556,11 @@ public void ForwardOpen(bool largeForwardOpen) if (multicastAddress != 0) { System.Net.IPAddress multicast = (new System.Net.IPAddress(multicastAddress)); - udpClientReceive.JoinMulticastGroup(multicast); - + + System.Net.IPEndPoint localEndPoint = (System.Net.IPEndPoint)client.Client.LocalEndPoint; + System.Net.IPAddress localIP = localEndPoint.Address; + + udpClientReceive.JoinMulticastGroup(multicast, localIP); } System.Threading.Thread sendThread = new System.Threading.Thread(sendUDP);