Best way to Stream VLC videos on your local network

Saifudheen SidheeqNetworkingLeave a Comment

The VLC media player is great if you wanted to watch videos on your computer, tablet, or even on your smartphone. And the best part about this media software is that it not only play videos locally it also helps you stream videos over the network, meaning you can make your local machine as a video server and stream the videos from other devices. Moreover, it is free and open-source too.

In this blog, we are going to make our local machine as a VLC streaming server and play videos in two different methods.

  1. Playing VLC stream on the Ubuntu
  2. Playing VLC stream on Android phone with hotspot enabled.

Let’s get started.

Prerequisite for VLC streaming

  • Any Operating System with VLC in it, to start VLC network stream and act as a video server. I am using a windows machine as my local computer that would act as a video server.
  • VLC client PC – I am using an Ubuntu machine with VLC is installed.
  • For the VLC stream to android, you would require an Android phone with hotspot access and VLC installed on it as well.

Playing VLC stream on the Ubuntu

Let’s go ahead and start with the first method, which is Playing the VLC network stream on an Ubuntu machine. To begin with, you would have to enable the VLC streaming on your local computer.

How to enable video streaming using VLC?

Step1. Open VLC and click on Stream.

I opened VLC on my windows machine and clicked on Stream.

vlc streaming server setup

Step2. Add the video that you wanted to play and click on the stream

vlc stream local network
  • There is nothing much in here on the next screen, Click next.
vlc open network stream

Step3. On the Destination setup, select UDP and click on Add

vlc udp stream

Step4. On the Add menu, you would have to enter the IP address of the destination VM, Ubuntu VM in our case. let’s go ahead and get the IP address of the Ubuntu VM

  • You can get the IP address of the Ubuntu VM by going to the terminal and type ip addr
vlc network stream on Ubuntu

In our example, the IP address is 192.168.137.115, enter the same on the add screen.

And leave the port number as default and click on next.

vlc stream local network

Step5. On the next screen Uncheck the Activate transcoding and leave the default profile and click on next.

diable Activate Transcoding for VLC stream
  • Click on Stream now, and your video streaming start to play now.
Generated stream output string for VLC streaming
  • The Video would start streaming now with a black screen unless you clicked on Display output local.
VLC streaming now started

Access the VLC video stream on Ubuntu VM.

Step1. Open VLC and click on Open Network stream

vlc stream desktop local network

Step2. on the network URL type udp://@:1234, click play

vlc stream desktop local network
  • You can see the videos start playing now.
the VLC video started to play successfully now.

Playing VLC stream on Android phone with hotspot enabled.

The same way we played the video stream on Ubuntu VM, you could do the same on the Android phone as well with the VLC app. Follow the steps below to do that.

Step1. On your Android phone, enable wireless hotspot.

Step2. Connect your local machine to the hotspot wifi.

Step3. On your local machine Go-to Command prompt and type ipconfig.

You should be able to see the IP address of your local machine (192.168.43.162) and the default gateway (192.168.43.194), which is the IP address of your Android phone.

ipconfig
Wireless LAN adapter Wi-Fi:

   IPv4 Address. . . . . . . . . . . : 192.168.43.162
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.43.194

Step4. Now enable the VLC video streaming pointing to the Android phone.

  • Instead of using the IP address of Ubuntu VM, which I showed earlier, use the Android IP address this time.
vlc android local network
  • On your Android phone, click on stream in the VLC app
vlc android local network
  • and type udp://@:1234
enter the network url for the VLC stream on your VLC app android
  • Hurray!, the videos start to stream now on your Android phone as well.
VLC streaming started to play successfully on your android phone