Thursday, March 22, 2012

How to enable http interface in VLC Player 2.0.0 (Twoflower)

Note: Added ScanIP functionality to the VLC remote.
If you know how to install deb files on N9, You can download it from here

A) Enable  http interface in VLC Player

1) Step 1: Open Tools->Preferences

2) Step 2: Select "Show All settings"

3) Step 3: Double Click on "Interface" to bring up the sub menu.

4) Step 4: Click on "Main Interfaces" and then select the "web" option on the right.

5) Now open a web browser and enter the following url

If you can see the vlc controls, then the http interface is setup properly.

Now try to open the following url
http://<your computer ip>:8080
If this doesn't work, then please follow the below instructions.

B) Enabling permissions for phone (modifying .hosts file)

In the recent versions of VLC, connecting from phones and other machines is blocked by default.
It has to be enabled manually by modifying the .hosts file.

1) Goto the following folder
C:\Program Files\VideoLAN\VLC\lua\http

2) You should find a file called ".hosts" in this folder.

3) Open that file using Wordpad or any other editor.

4) Uncomment all the lines with IP's in it. After editing, your file should look like this.
    Notice no # characters before the IP's

# Access-list for VLC HTTP interface
# $Id$

# localhost

# link-local addresses

# private addresses

# The world (uncommenting these 2 lines is not quite safe)


If you want to give specific permissions, then you can edit this file according to your needs.

5) Now restart VLC player and connect from your phone.