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

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)

你可能感兴趣的:(live555 出现Unable to determine our source address: This computer has an invalid IP address: 0x0 解决方案)