Can't access HTTP Interface

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
neo926
New Cone
New Cone
Posts: 1
Joined: 30 Oct 2008 03:29

Can't access HTTP Interface

Postby neo926 » 19 Dec 2008 00:54

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.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Can't access HTTP Interface

Postby VLC_help » 20 Dec 2008 18:01

You have to add other computers IP address to VLCs .host file to whitelist it.

dlfl
New Cone
New Cone
Posts: 9
Joined: 03 Dec 2008 02:47

Re: Can't access HTTP Interface

Postby dlfl » 21 Dec 2008 17:55

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

dlfl
New Cone
New Cone
Posts: 9
Joined: 03 Dec 2008 02:47

Re: Can't access HTTP Interface

Postby dlfl » 22 Dec 2008 03:57

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......

aquasales
New Cone
New Cone
Posts: 1
Joined: 27 Apr 2009 22:59

Re: Can't access HTTP Interface

Postby aquasales » 27 Apr 2009 23:00

I'm having the exact same problem.
Any ideas?

My host files is set up as above.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Can't access HTTP Interface

Postby VLC_help » 28 Apr 2009 17:05

Your issue is
main error: cannot add ACL from C:\Program Files\VideoLAN\VLC\\http\.hosts
or that you cannot connect?

koZlov
New Cone
New Cone
Posts: 1
Joined: 22 Jul 2010 07:56

Re: Can't access HTTP Interface

Postby koZlov » 22 Jul 2010 08:01

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Can't access HTTP Interface

Postby VLC_help » 22 Jul 2010 19:14

Does VLC complain something? (Tools -> Messages and Verbosity to 2)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 30 guests