Linux run Live55 display: No get Ip:ip is 0.0.0.0
live555 If you do not know the local IP address and the network interface, through a local port to establish a UDP connection, and then the UDP connection to join
To a multicast group, of course, the multicast group to set the corresponding settings, such as TTL, Loopback, and so on, and then send a data through a UDP connection, and finally through the UDP connection to receive this data, and to resolve the corresponding sending address; that's probably the process.
The specific code snippet in Live555:groupsock/groupsockhelper.cpp:
So we set a fixed IP address:
First set IP: Execute command: Vi/etc/sysconfig/network-scripts/ifcfg-eth0 My settings are as follows:
You must also set up the gateway afterwards!!!
Execute command: vi/etc/sysconfig/network My settings are as follows;
Restart service after saving exit:
Service Network restart
or run/etc/sysconfig/network-scripts/ifup eth0 boot
At this point ifconfig looks like this:
Run live555 as follows:
At this time the live555 server is started, and can get the native IP address correctly
Use VLC player to play media files under Linux server under Windows!
Reference:
1,linux Live555 cannot get IP address workaround
http://zyd87818.blog.163.com/blog/static/174881501201271104844296/
Go Live555 cannot get IP address resolution under Linux