[Live-devel] Unable to determine ip address

Lennart Gilander lennart.gilander at methafour.com
Sun Dec 21 10:43:33 PST 2008


Are trying to get live555 standard configurations and compiled from source 
code
working on a FC6 machine with two network cards but the streamer seems 
confused
about the ip address. Have done various tests, this is briefly what I get:

-> The response when running testMPEG2TransportStreamer is:

Unable to determine our source address: This computer has an invalid IP 
address: 0x0
Unable to determine our source address: This computer has an invalid IP 
address: 0x0
Beginning streaming...
Beginning to read from file...

Please note that the first line really comes twice. Is that because there 
are two network cards?


-> Starting the live555MediaServer I get:

LIVE555 Media Server
        version 0.20 (LIVE555 Streaming Media library version 2008.12.19).
Play streams from this server using the URL
        rtsp://0.0.0.0/<filename>
where <filename> is a file present in the current directory.

This seems to indicate that the streamer can't find an ip-address (a single 
ip address?)

-> Executing the command 'ip addr' gives:

 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 
100
    link/ether 00:30:05:5a:66:1c brd ff:ff:ff:ff:ff:ff
    inet 10.10.99.215/24 brd 10.10.99.255 scope global eth1
    inet6 fe80::230:5ff:fe5a:661c/64 scope link
       valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 
1000
    link/ether 00:40:05:a4:91:08 brd ff:ff:ff:ff:ff:ff
    inet 10.10.60.215/24 brd 10.10.60.255 scope global eth0
    inet6 fe80::240:5ff:fea4:9108/64 scope link
       valid_lft forever preferred_lft forever

-> Having read an earlier response I also checked the multicast setup, using 
'netstat -nr' I get:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
10.10.0.0       10.10.99.1      255.255.255.0   UG        0 0          0 
eth1
10.10.99.0      0.0.0.0         255.255.255.0   U         0 0          0 
eth1
10.10.60.0      0.0.0.0         255.255.255.0   U         0 0          0 
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 
eth0
224.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 
eth0
232.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 
eth0
0.0.0.0         10.10.99.1      0.0.0.0         UG        0 0          0 
eth1

So the multicast route (224.0.0.0/255.0.0.0' is really set up for eth0.

Would really need two (or perhaps even three) network cards in this machine 
if at all possible,
so how do I get the streamer to select the preferred eth0 interface?

Can't seem to find an answer anywhere in the FAQ.

Regards
/ Lennart 



More information about the live-devel mailing list