I tried this but didn't seemed to work at all either. seemed to say
<pre>
<font color=green>SOCKET</font> fd = getSocket(ipaddress, interfaceIp, portNumber);
socketUDP = g_socket_new_from_fd(fd, &err);
<font color=green>SOCKET</font> getSocket(<font color=blue>const char</font>* ipaddress,<font color=blue>const char</font>* interfaceIp,<font color=blue>const int</font> portNumber)
{
<font color=blue>struct</font> <font color=green>sockaddr_in</font> addr;
<font color=blue>struct</font> <font color=green>sockaddr_in</font>* pAddr;
<font color=blue>struct</font> <font color=green>sockaddr_in</font>* a;
<font color=blue>struct</font> <font color=green>sockaddr_in</font> aa;
<font color=blue>struct</font> group_req mreq;
a = &aa;
pAddr = &addr;
<font color=blue>int</font> fd = socket(AF_INET, SOCK_DGRAM, 0);
memset(&addr, 0, sizeof(addr));
memset(&aa, 0, sizeof(aa));
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = InetPtonW(AF_INET, L"232.232.232.0", &pAddr->sin_addr);
addr.sin_port = ntohs(portNumber);
bind(fd, (const struct sockaddr *) &addr, sizeof(addr)) == 0;
mreq.gr_interface = InetPtonW(AF_INET, L"10.16.14.210", &a->sin_addr);
memset(&mreq.gr_group, 0, sizeof(mreq.gr_group));
a = (struct sockaddr_in *) &mreq.gr_group;
a->sin_family = AF_INET;
a->sin_port = portNumber;
setsockopt(fd, IPPROTO_IP, MCAST_JOIN_GROUP, (const char*)&mreq, sizeof(mreq)) == 0;
<font color=blue>return</font> fd;
}
</pre>
<div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
------------------------------
<br/>Gstreamer 1.14.3
<br/>------------------------------
<br/>Windows
</div>
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>