Page 1 of 1
This computer has an invalid IP address: 0x0
Posted: 12 Oct 2007 13:14
by mangoo
I just compiled a 22566 svn snapshot of VLC 0.9.
It plays static files, http and mms streams just fine, but I'm unable to play rtsp streams.
This is what I get in the console:
# vlc -v rtsp://192.168.1.142/live.sdp
VLC media player 0.9.0-svn Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-svn Grishenko - (c) 1996-2007 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--with-ffmpeg-tree=/home/manager/vlc_ffmpeg/ffmpeg' '--enable-live555' '--with-live555-tree=/usr/lib/live' '--disable-wxwidgets' '--enable-x11' '--disable-skins2' '--enable-qt4'
[00000001] main libvlc debug: translation test: code is "C"
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
[00000317] live555 demuxer warning: no data received in 10s. Switching to TCP
[00000313] message interface warning: message queue overflowed
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
[00000317] live555 demuxer error: no data received in 10s, aborting
What's wrong with my source address, and why VLC thinks it's invalid?
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:18:87:94
inet addr:192.168.113.18 Bcast:192.168.113.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe18:8794/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:203826 errors:0 dropped:0 overruns:0 frame:0
TX packets:197250 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:68814311 (65.6 MiB) TX bytes:38026056 (36.2 MiB)
Re: This computer has an invalid IP address: 0x0
Posted: 13 Oct 2007 12:43
by Rémi Denis-Courmont
This error message is not coming from VLC. Probably faulty liblive555.
Re: This computer has an invalid IP address: 0x0
Posted: 17 Oct 2007 01:10
by kwizart
I wonder if this is related to gethostbyname() to be replaced with getaddrinfo() (within live555)
But that's just a blind suggest...
The workaround is to open 15947 in udp
Re: This computer has an invalid IP address: 0x0
Posted: 18 Oct 2007 10:29
by georgesdev
I'm thinking it might be your /etc/hosts file that is wrong.
try the command:
ping `hostname`
if it pings 127.0.0.1 then you are in trouble.
is your hostname on the line for localhost, something like
127.0.0.1 the-name-of-your-machine localhost
In that case I understand why vlc would get confused.
try changing it to:
127.0.0.1 localhost
the-ip-of-your-machine the-name-of-your-machine
then check with the following command:
ping `hostname`
this should ping your true IP address and not the dummy 127.0.0.1 one
Re: This computer has an invalid IP address: 0x0
Posted: 18 Oct 2007 14:47
by kwizart
Well I have this problem with Fedora 7 (and not Fedora Core 6 with the same /etc/host file)
So I expect some glic changes (where are thoses functions live I think ?!)
Fedora guidelines ask this
https://www.redhat.com/archives/fedora- ... 00925.html
here is a patch commited to achieve this:
https://www.redhat.com/archives/fedora- ... 03754.html
Ps: that an hightly unconfirmed suggestion... (But Quovodis already studied the question with me some past days)...
Re: This computer has an invalid IP address: 0x0
Posted: 18 Oct 2007 15:17
by kwizart
@georgesdev, indeed you are right:
I've switch my /etc/hosts to:
127.0.0.1 localhost.localdomain localhost
192.168.1.100 kwizart.localdomain kwizart
::1 localhost6.localdomain6 localhost6
Then everything went fine...
Re: This computer has an invalid IP address: 0x0
Posted: 01 Sep 2008 08:52
by shivaprasad
Even im facing same problem..., how to fix this....
I made modifications in /etc/hosts file like this
127.0.0.1 localhost.localdomain localhost localhost
192.168.2.197 root.localdomain root
::1 localhost6.localdomain6 localhost6
still it is not working...!!!!!!!!!
Problem explanation is given in following link..
http://lists.live555.com/pipermail/live ... 06053.html
Re: This computer has an invalid IP address: 0x0
Posted: 12 Nov 2008 22:08
by tazly
I'm getting the same:
Code: Select all
LC media player 0.9.6 Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.6 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--libdir=/usr/lib' '--disable-dependency-tracking' '--enable-gnomevfs' '--enable-ncurses' '--enable-wxwidgets' '--disable-pda' '--disable-macosx' '--disable-qnx' '--enable-xosd' '--enable-gnutls' '--enable-visual' '--disable-goom' '--enable-slp' '--enable-lirc' '--disable-joystick' '--disable-corba' '--enable-dvdread' '--enable-dvdnav' '--disable-dshow' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-vcd' '--enable-satellite' '--enable-ogg' '--enable-mkv' '--enable-mod' '--enable-libcdio' '--enable-vcdx' '--enable-cddax' '--enable-libcddb' '--enable-x11' '--enable-xvideo' '--enable-glx' '--enable-fb' '--enable-mga' '--enable-freetype' '--enable-fribidi' '--disable-svg' '--disable-directx' '--disable-wingdi' '--disable-glide' '--enable-aa' '--enable-caca' '--enable-oss' '--disable-esd' '--enable-arts' '--enable-waveout' '--disable-coreaudio' '--disable-hd1000a' '--disable-hd1000v' '--enable-mad' '--enable-ffmpeg' '--enable-faad' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-tremor' '--enable-speex' '--disable-tarkin' '--enable-theora' '--enable-cmml' '--enable-utf8' '--enable-pth' '--disable-st' '--disable-gprof' '--disable-cprof' '--disable-testsuite' '--enable-optimizations' '--disable-altivec' '--disable-debug' '--enable-release' '--enable-sout' '--with-ffmpeg-faac' '--disable-galaktos' '--enable-httpd' '--disable-jack' '--enable-mozilla' '--enable-alsa' '--enable-real' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/lib/live' '--enable-fast-install' '--enable-dvbpsi' '--enable-dvb' '--enable-lua' '--enable-pulse' '--enable-asademux' '--enable-libproxy' '--enable-libass' '--enable-kate' '--enable-smb'
[00000001] main libvlc debug: translation test: code is "da"
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
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
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
Unable to determine our source address: This computer has an invalid IP address: 0x0
And it continues.
Please fix this so we can use VLC!
My config:
> uname -a
Linux dhcppc3 2.6.25.18-0.2-default #1 SMP 2008-10-21 16:30:26 +0200 i686 athlon i386 GNU/Linux
Re: This computer has an invalid IP address: 0x0
Posted: 13 Nov 2008 17:25
by Rémi Denis-Courmont
To reiterate: this error message is not coming from VLC. This is not a VLC bug.
Do not expect the VideoLAN project to fix this, because we cannot.
Re: This computer has an invalid IP address: 0x0
Posted: 20 Nov 2008 13:55
by kwizart
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)
Re: This computer has an invalid IP address: 0x0
Posted: 30 Jan 2019 17:49
by laoyuan2006
In centos 7, I disabled the firewalld and selinux, solved the problem.
systemctl stop firewalld
systemctl disable firewalld
setenforce 0