http interface 403 error

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
rbarrero
Blank Cone
Blank Cone
Posts: 31
Joined: 19 Feb 2008 09:27

http interface 403 error

Postby rbarrero » 20 Feb 2008 11:11

Hi there... I've just compiled VLC from Feb. 16th's nightly package and the http interface shows a "403 Forbidden" error when you go to the default http://server:8080 address. This worked previously on the 0.8.6d release, but not sure if I have to do something else to get it to work with this release, or if I picked a bad night... Help?

Thanks,

Rafael

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: http interface 403 error

Postby Jean-Baptiste Kempf » 20 Feb 2008 11:37

manage the .hosts file
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

DoubleYouSee
New Cone
New Cone
Posts: 2
Joined: 17 Sep 2008 22:35

Re: http interface 403 error

Postby DoubleYouSee » 17 Sep 2008 22:48

"manage the .hosts file"

In what way?

I am running VLC 0.9. and the http interface. I had the interface working 10 minutes ago on 0.8.6d

I've upgraded and now I get a 403 Forbidden message if I try to use a host address other than localhost.

So if I am to understand your VERY vague reply, I need to manage my .hosts file, sounds like a hidden *nix file to me... I am having this problem on a windows installation. if I need to edit etc/hosts I will, but some clue about what address to point where would be helpful...

Cheers!

DoubleYouSee
New Cone
New Cone
Posts: 2
Joined: 17 Sep 2008 22:35

Re: http interface 403 error

Postby DoubleYouSee » 17 Sep 2008 23:04

Alright, so it turns out your first post shouldn't be the one where you arrogantly run your mouth... whoops :S

I've found the answer in the "Important Notes" section of http://www.videolan.org/developers/vlc/NEWS

Just uncomment the interface you want to use in BOTH files and then set the port on the interface line.

Cheers!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: http interface 403 error

Postby Jean-Baptiste Kempf » 18 Sep 2008 03:02

Alright, so it turns out your first post shouldn't be the one where you arrogantly run your mouth... whoops :S

I've found the answer in the "Important Notes" section of http://www.videolan.org/developers/vlc/NEWS

Just uncomment the interface you want to use in BOTH files and then set the port on the interface line.

Cheers!
Here you go...
Reading the release notes can be usefull, sometimes. :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

deadletter
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2009 21:49

Re: http interface 403 error

Postby deadletter » 25 Mar 2009 00:28

Can I get a little more information here?

On my LAN, this computer is http://10.1.10.130

To be able to access this, I need to edit the hosts to include a line that says 10.1.10.130... however I am not having success.

Entering 127.0.0.1:8080 DOES get me to the interface, 10.1.10.130:8080 does NOT.

jeremyb
New Cone
New Cone
Posts: 1
Joined: 09 Apr 2010 19:28

Re: http interface 403 error

Postby jeremyb » 09 Apr 2010 19:35

i was having the same issue with vlc 0.9.10 on OS X 10.4. that is, i could access the http interface via 'localhost' or '127.0.0.1', but not via the machine's local ip address (192.168.2.103) or its hostname. to fix this, i enabled ipv6 link-local addresses by uncommenting the following line in the .hosts file(s):

Code: Select all

fe80::/64
apparently, despite the fact that i was asking for ipv4 addresses, my requests were being whizzed around via ipv6. 127.0.0.1 worked (i guess) because ::1 was enabled in the .hosts file. once i enabled the ipv6 addresses inbound, everything worked.

hth,
jeremyb

wxl
New Cone
New Cone
Posts: 6
Joined: 16 Aug 2010 09:40

Re: http interface 403 error

Postby wxl » 16 Aug 2010 09:56

many thx jeremyb!!
FYI for Mac users, it's at /Applications/VLC.app/Contents/MacOS/share/http/.hosts

parker67
New Cone
New Cone
Posts: 1
Joined: 28 Jan 2011 13:15

Re: http interface 403 error

Postby parker67 » 28 Jan 2011 13:19

many thx jeremyb!!
FYI for Mac users, it's at /Applications/VLC.app/Contents/MacOS/share/http/.hosts
Ok the easy and secure way of doing this to allow your http access is to add your ip address with a /32 after it into the .hosts file that you have been editing. this is the safest way to do this as the way that jeremyb has suggested is opening it do all access which is a bad thing.

so in your case it would look like this

10.1.10.130/32

Just a helpful hint to you know make things more secure lol

erikmeisel
New Cone
New Cone
Posts: 2
Joined: 08 May 2012 03:47

Re: http interface 403 error

Postby erikmeisel » 08 May 2012 03:52

That works for me, but the developers complicate the things, I think they are concern about security but., that thing complicates the things, GRRR!!!!!!! an instalation of 3 minutes becomes, includes google searches, takes about 25 minutes GRRRR!!!!!!!!!!!!!!!

erikmeisel
New Cone
New Cone
Posts: 2
Joined: 08 May 2012 03:47

Re: http interface 403 error

Postby erikmeisel » 08 May 2012 03:54

in windows you must edit the file C:\Program Files\VideoLAN\VLC\lua\http\.hosts and uncomment or edit or add the line 192.168.1.0/24
# private addresses
#fc00::/7
#fec0::/10
#10.0.0.0/8
#172.16.0.0/12
192.168.1.0/24
#169.254.0.0/16

# The world (uncommenting these 2 lines is not quite safe)
#::/0
#0.0.0.0/0

scorchgeek
New Cone
New Cone
Posts: 1
Joined: 08 Jun 2012 22:28

Re: http interface 403 error

Postby scorchgeek » 08 Jun 2012 22:31

I was having this same problem and spent hours on it. I tried all of this. I noticed that there seemed to be a large number of .hosts files scattered around my system. Most of them appeared to be symlinked to each other, but then I found one that wasn't. Curious, I did a "sudo find / -name '.hosts" and found no fewer than 9 VLC .hosts files around my system (some undoubtedly left from the previous version, which I'd installed via the Linux Mint package manager and then uninstalled to compile the latest version).

The one that finally actually did something for me was /usr/local/share/vlc/lua/http/.hosts. Hope this helps...


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 14 guests