Hi! I want to send my TCP socket's public IP & port in SDP (on Windows Mobile). In order to get my public address I use: status = pjstun_get_mapped_addr(&pjsua_var.cp.factory, 1, sockets, &stun_srv, pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port), &stun_srv, pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port), &publicAddr); If I use UDP socket, it works flawlessly, If I use TCP socket, it fails: STUN resolve error: Socket is not connected (WSAENOTCONN) [status=130057] Why should I connect? I cannot connect to the other side before I don't get the answer SDP for the offer which contains the target IP & port, so what should I do? sry for my English bye, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100625/ac5c3615/attachment.html>