On most systems, where scope format uses the interface name:

    1. const socket = dgram.createSocket('udp6');
    2. socket.bind(1234, () => {
    3. socket.setMulticastInterface('::%eth1');
    4. });

    On Windows, where scope format uses an interface number:

    1. const socket = dgram.createSocket('udp6');
    2. socket.bind(1234, () => {
    3. socket.setMulticastInterface('::%2');
    4. });