码迷,mamicode.com
首页 > 其他好文 > 详细

(转)live555获取不到IP的解决办法

时间:2014-12-05 17:12:30      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:des   blog   http   ar   os   sp   for   on   log   

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的解决办法

标签:des   blog   http   ar   os   sp   for   on   log   

原文地址:http://www.cnblogs.com/tiancun/p/4146946.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!