Set up VLC for the VLC Remote

NB: It is much easier to do this setup with the Setup Helper.

The manual instructions are for anyone who doesn't have Mac OS 10.5 (Leopard) or later installed, or who is geeky enough to want to do things manually!

These instructions are based on VLC 2.0. If you have VLC 2.1 or later, then please click here.

A) Enable the HTTP Interface

  1. Open the VLC settings
    • VLC Menu/Preferences
  2. Click 'Show All' to show the advanced settings
  3. show all prefs

  4. Enable the interface
    • Click on Interface, then Main interfaces
    • enter 'http' in the Extra interface modules
  5. Mac Prefs

  6. Save the preferences
  7. Quit VLC and restart it

B) Give your phone permission to access VLC (if necessary)

Once you have enabled the http interface, press re-scan on your phone remote.

If you see a traffic cone beside the computer you are trying to control, then you can skip this step. If you see a cone with a red X through it, then you need to give your phone permission to access VLC. This probably means you have a very recent version of VLC.

VLC in the latest versions uses a file called '.hosts' to define which computers can access the VLC remote player.

Editing the .hosts file is painful as it won't show in the finder by default, so there are two approaches:

Using the (free) show/hide files app

  1. Download "Show Hidden Files" from here
  2. Install the app, run it and click on the 'show' option
  3. Browse to VLC in your Applications folder
  4. Control click on VLC and select 'Show package contents'
  5. Navigate to /Contents/MacOS/share/lua/http/ where you should see the .hosts file
  6. Open this file in your favourite text editor
  7. Make the changes suggested below and save the file
  8. Quit and restart VLC and all should work.

Using the Terminal:

  1. Open a terminal window
    • Click on the spotlight in the top corner of your screen, type 'Terminal' and you should see the terminal app. It will open an input window.
  2. Copy the following command into the window
    • open -e /Applications/VLC.app/Contents/MacOS/share/lua/http/.hosts
    • This assumes that you have VLC installed directly in your Applications folder (not in a subfolder). If you have VLC installed somewhere different, then you'll need to adjust the path above.
  3. The hosts file should open in Text Edit. Make the changes suggested below and save the file.
  4. Quit and restart VLC and all should work.

This is the default file (this will not allow VLC remote to access VLC)

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

# localhost
::1
127.0.0.1

# link-local addresses
#fe80::/64

# private addresses
#fc00::/7
#fec0::/10
#10.0.0.0/8
#172.16.0.0/12
#192.168.0.0/16
#169.254.0.0/16

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

if you want to access VLC from your local network, then you will need to remove the # signs in the 'private addresses' area so that it looks like this

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

# localhost
::1
127.0.0.1

# link-local addresses
#fe80::/64

# private addresses
fc00::/7
fec0::/10
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
169.254.0.0/16

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

if you want to access VLC from the entire world, then remove the # in the 'The World' section. As VLC says, this is 'not quite safe' as you allow the whole world to control your VLC player.

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

# localhost
::1
127.0.0.1

# link-local addresses
#fe80::/64

# private addresses
fc00::/7
fec0::/10
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
169.254.0.0/16

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

C) Check that your firewall allows connections to VLC

Launch the System Preferences application, then click on Security and then Firewall

The simplest option (the one I use) is to simply leave the firewall off - but assuming you have it turned on then click on the lock on the bottom left to unlock the settings, then click on advanced on the bottom right.

allow all connections

Make sure that you specify that VLC should allow incoming connections

 

D) That's it!

By now, you should be able to see your computer in the VLC Remotes page under 'Found Computers'. If VLC is running on your computer, then you should see a Traffic cone next to the computer entry.

You can then select that computer and control it remotely.

Troubleshooting...

If you can't connect, try the troubleshooting page.