Go Live555 cannot get IP address resolution under Linux

Source: Internet
Author: User
Tags get ip

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.