You can open the video using vlc open network stream feature.
and Enter tcp://your_private_ip_address:port_number
import java.net.*;
import java.io.*;
void main() throws IOException, FileNotFoundException {
ServerSocket server = new ServerSocket();
server.bind(new InetSocketAddress("192.168.1.14", 5678));
System.out.println("Server start");
int reqCount = 0;
while (true) {
try {
Socket clinet = server.accept();
System.out.println("Stream Count: " + reqCount);
reqCount++;
OutputStream stream = clinet.getOutputStream();
InputStream in = clinet.getInputStream();
byte[] buffer = new byte[1024];
int data;
FileInputStream fin = new FileInputStream("vid.mp4");
while ((data = fin.read(buffer)) != -1) {
stream.write(buffer);
}
stream.close();
in.close();
fin.close();
} catch (SocketException e) {
System.out.println("User close video lol");
}
}
}
On this page of the site you can watch the video online Building a Simple Video Streaming Server with Java Using Socket with a duration of hours minute second in good quality, which was uploaded by the user Mr bun 12 August 2026, share the link with friends and acquaintances, this video has already been watched 4 times on youtube and it was liked by 0 viewers. Enjoy your viewing!