VLC includes a web interface, which you can enable to access your VLC player from a web browser, controlling playback from another device – particularly useful for a media center PC. VLC also offers a mobile web interface for smartphones.
The web interface is turned off and locked down by default – you have to edit the web server’s .hosts file or VLC will disallow all incoming connections from other devices.
Activating the Web Interface
To activate the web interface, click the Tools menu in VLC and select Preferences.
Click the All option under Show settings to view VLC’s advanced settings. Scroll down in the list of advanced settings and select Main interfaces under the Interface header.
Click the Web check box to enable the HTTP interface.
Save your settings and restart VLC. Each time you start VLC, the web server will be started in the background – Windows will prompt you to allow VLC firewall access when you restart it, indicating that the web server is running.
Click the following link or plug its address into your browser to access the VLC web interface on your local computer: http://localhost:8080/
If you’re using VLC 2.0.1, certain elements of the web interface – the seek bar in particular — may not work properly. This is a bug in version 2.0.1 that isn’t present in 2.0.0 and has been fixed for version 2.0.2. VLC 2.0.0 includes a new web interface that replaces the old one – hopefully it will see more polish in future versions.
Allowing Remote Access
By default, the web interface is completely locked down – it’s restricted to localhost, which means you can only access it from the machine VLC is running on. You’ll see a 403 Forbidden error page if you try to access VLC’s HTTP server from any other device.
To allow access from other computers, you’ll have to edit the web interface’s .hosts file. You’ll find this file in different directories on different operating systems:
Windows – C:\Program Files (x86)\VideoLAN\VLC\lua\http (use “Program Files” instead of “Program Files (x86)” on 32-bit versions of Windows. ) Mac OS X – /Applications/VLC. app/Contents/MacOS/share/lua/http/. hosts Linux – /usr/share/vlc/lua/http/. hosts
To edit this file on Windows, you’ll have to open Notepad – or another text editor – as Administrator. Browse to the folder mentioned above and select “All Files” in Notepad’s open dialog to view the .hosts file.
You can uncomment the last two lines (to uncomment a line, remove the # at the beginning of the line) to allow access from all IP addresses, but the file notes this isn’t completely safe. You could also allow a range of IP addresses – or specify the IP address of each other device you want to allow here (add each IP address on a separate line).
Save the file and restart VLC after making the change.
Using the Web Interface
Plug http://123.456.7.89:8080 into a web browser on an allowed computer or smartphone to view VLC’s web interface. Replace the “123.456.7.89” in the address with the IP address of the computer running VLC.
If you need to find your computer’s IP address, you can use the ipconfig command in a Command Prompt window. Look for the IPv4 Address row under the name of your connection.
If you also want to access VLC’s web interface over the Internet instead of your local network, you’ll have to forward ports on your router.