Enable the configuration and the use of loopback multicast sockets

Fix #2594.