diff --git a/src/network/multicastsocket.c b/src/network/multicastsocket.c index 2f351cf..6e15244 100644 --- a/src/network/multicastsocket.c +++ b/src/network/multicastsocket.c @@ -54,7 +54,8 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_ } /* Join the broadcast group: */ - command.imr_multiaddr.s_addr = inet_addr(_multicast_ip); + //command.imr_multiaddr.s_addr = inet_addr(_multicast_ip); + command.imr_interface.s_addr = htonl (INADDR_ANY); if (command.imr_multiaddr.s_addr == -1) { perror("Wrong multicast address!\n"); exit(EXIT_FAILURE);