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 play videos over the network, meaning you can make your local machine as video server and stream the videos. Moreover, it is 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.
- Playing VLC stream on the Ubuntu VM
- Playing VLC stream on Android phone with hotspot enabled.
Let’s get started.
Prerequisite for VLC streaming
- Any Operating System installed as VM in VMware workstation with VLC in it. I am using Ubuntu with VLC in it. You can install VLC using the Ubuntu Software Center.
- Android phone with hotspot access and VLC installed on it as well.
Playing VLC stream on the Ubuntu VM
Let’s go ahead and start with the first method, which is Playing the VLC video stream on a Virtual 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.
Step2. Add the video that you wanted to play and click on the stream
- There is nothing much in here on the next screen, Click next.
Step3. On the Destination setup, select UDP and click on Add
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
- 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.
Step5. On the next screen Uncheck the Activate transcoding and leave the default profile and click on next.
- Click on Stream now, and your video streaming start to play now.
- The Video would start streaming now with a black screen unless you clicked on Display output local.
Access the VLC video stream on Ubuntu VM.
Step1. Open VLC and click on Open Network stream
Step2. on the network URL type udp://@:1234, click play
- You can see the videos start playing 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.
- On your Android phone, click on stream in the VLC app
- and type udp://@:1234
- Hurray!, the videos start to stream now on your Android phone as well.