Page 1 of 1
Can't access HTTP Interface
Posted: 19 Dec 2008 00:54
by neo926
I have 2 PCs on my network, both with VLC installed. I have enabled the HTTP interface on both. On one, I can access the HTTP interface without any problem, however on the other all I get is a page saying EAccessViolation. I've tried everything I can think of to get it to work, but I'm completely clueless on what I'm doing wrong. Firewall, etc. doesn't even matter because I can't get the interface to load up from the same PC.
If I look at my Messages in VLC, this is what I see:
Code: Select all
main info: creating httpd
main error: invalid IP address ::1
main error: cannot add ACL from C:\Program Files\VideoLAN\VLC\\http\.hosts
main error: invalid IP address ::1
main error: cannot add ACL from C:\Program Files\VideoLAN\VLC\\http\old\.hosts
main error: invalid IP address ::
main error: cannot add ACL from C:\Program Files\VideoLAN\VLC\\http\old\.hosts
main info: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Re: Can't access HTTP Interface
Posted: 20 Dec 2008 18:01
by VLC_help
You have to add other computers IP address to VLCs .host file to whitelist it.
Re: Can't access HTTP Interface
Posted: 21 Dec 2008 17:55
by dlfl
OK, I've spent hours trying to get my .hosts files right. I had the HTTP control interface working between two computers on my local network at one time but can't remember how I did it. One question is: which .hosts file? The one in C:\Program Files\VideoLAN\VLC\http\ or the one in C:\Program Files\VideoLAN\VLC\http\old ?
I've searched and searched for instructions on the format of a .hosts file. Do they exist anywhere?
Specifically if I have a hub at 192.168.0.1 and I want to whitelist a computer at 192.168.0.168, what do I put in which .hosts file, and does the placement in the file(s) make a difference?
What do ::1 and ::0 mean ?
Also, do I have to replace 127.0.0.1 with the actual IP of the host computer (192.168.0.223)?
Thanks
Re: Can't access HTTP Interface
Posted: 22 Dec 2008 03:57
by dlfl
Got my problems solved and will post here to help others:
The .hosts file that works for me is ultra simple:
::1
192.168.0.223
192.168.0.168
Where the first IP# is the "host" computer and the second is the "client" computer. I put the identical .hosts file in the ...\VLC\http and the ...\VLC\http\old folders although I'm not sure which one matters, or both.
Later I learned you can just do this:
::1
192.168.0.0/16
According to a post in another thread this is equivalent to the IP range 192.168.0.0 thru 192.168.255.255 .
I learned that to use the HTTP control interface and also do HTTP streaming you have to assign different port numbers. I use 8082 for control and 8080 for streaming. My shortcut to start the "host" VLC is:
"C:\Program Files\VideoLAN\VLC\vlc.exe" -I http --extraintf http --http-host 192.168.0.223:8082 --http-src "C:\Program Files\VideoLAN\VLC\http"
Hope this helps someone......
Re: Can't access HTTP Interface
Posted: 27 Apr 2009 23:00
by aquasales
I'm having the exact same problem.
Any ideas?
My host files is set up as above.
Re: Can't access HTTP Interface
Posted: 28 Apr 2009 17:05
by VLC_help
Your issue is
main error: cannot add ACL from C:\Program Files\VideoLAN\VLC\\http\.hosts
or that you cannot connect?
Re: Can't access HTTP Interface
Posted: 22 Jul 2010 08:01
by koZlov
Hi
Am also having the same problem .
I edited the host files as u said ,even tried with
/16.Now instead of getting
403 when i enter
http://serverip:8080 form another system i get page saying
"Internet explorer cannot display the page" please help.
Regards and Thanks
koZlov
Re: Can't access HTTP Interface
Posted: 22 Jul 2010 19:14
by VLC_help
Does VLC complain something? (Tools -> Messages and Verbosity to 2)