大龙的博客

常用链接

统计

最新评论

live555 出现Unable to determine our source address: This computer has an invalid IP address: 0x0 解决方案

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)

posted on 2009-12-17 11:21 大龙 阅读(3567) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理