首页 > 代码库 > (转)live555获取不到IP的解决办法
(转)live555获取不到IP的解决办法
Indeed, this problem isn‘t a vlc bug, but one of its dependency as live555.
There are two ways to fix the problem, as it will appear if you have a firewall that is closed by default.
- either using fixed ip from /etc/hosts like it was told before
- Or open the udp port 15947 of your firewall. (better if you have a dynamic ip attributed via dhcp).
quoting groupsock/GroupsockHelper.cpp at l.579
// Get our address by sending a (0-TTL) multicast packet,
// receiving it, and looking at the source address used.
// (This is kinda bogus, but it provides the best guarantee
// that other nodes will think our address is the same as we do.)
do {
loopbackWorks = 0; // until we learn otherwise
testAddr.s_addr = our_inet_addr("228.67.43.91"); // arbitrary
Port testPort(15947); // ditto
This hack doesn‘t seems ipv6 compliant.(like the whole live555 library anyway)
参考:
1,live555 出现Unable to determine our source address: This computer has an invalid IP address: 0x0 解决方案
http://www.cppblog.com/fwxjj/archive/2009/12/17/103377.html
(转)live555获取不到IP的解决办法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。