/JIOTVServer

JIOTV Server Script is made to Streaming LiveTV Channels from JIOTV using indian server (vps) or your phone and Play it on Apps or Browser ( Using New APIs )

Primary LanguageJavaScript

J-TV self server

Introduction

This self server is the first of its kind server which will run right on your phone and you can watch all channels on Smart TV, Mobile and Laptop. It will let you generate all the personal playlists.

Star repo if you find this helpful

Prerequisites

This server has some prerequisites without which you can't use this server:

  1. An android phone. IOS may work but I haven't tested.
  2. Jio number with subscription as you need to login.
  3. Your phone and your TV or Laptop must be connected to the same wifi. In case you are watching on your phone, then this is not required.
  4. Little brain as the process is little complicated. [Come on. You are setting up a server afterall]

Let's get started (Mobile)

download Termux application from F-Droid.

Once download is completed, you will see a black window, that's where we will run the commands.

Copy and run first command

apt update && apt upgrade -y

Once done, run the second command to start the installation of server. Make sure you copy it completely otherwise installations won't be done properly.

download nodejs by using this command

pkg install nodejs-lts wget -y

download script files and install

wget https://github.com/dhruv-2015/JIOTVServer/releases/download/V2.9.3/JTVServer.zip -N && unzip JTVServer.zip && rm JTVServer.zip

download start script

curl -o start.sh https://raw.githubusercontent.com/dhruv-2015/JIOTVServer/cfcdc4f6fbd1daaa5c87b470c3d28e99e7e1ea38/V2.0.3/start.sh && sh start.sh

if you face any error while download from github you can use discord link

curl -o start.sh https://cdn.discordapp.com/attachments/1072165096656220170/1072186722315681852/start.sh && sh start.sh

Till here, your server will start. This activity is one time only. Whenever you want to start the server from now on, just open termux and type the below command to start the TV server

sh start.sh

The server will now start. Now go to your mobile's chrome browser and open http://localhost:3500/

Control panel operations

There a server console will get open. It's time to fill up the details there. Below are the things that you have to do.

Jio Login

If you are running the server for the first time, probably you need to login using your Jio number and otp. In case login is successful, you will receive a success message

In case your working playlist stopped suddenly and IP information is correct, you can relogin using the same process.

IP Address

There are 3 states your mobile network can be in.

  1. You're connected to Wi-Fi.
  2. You have your mobile data on.
  3. You have your mobile data and hotspot on.

In order to know your IPv4 address (remember IPv4 only, IPv6 is not used here) you have to follow the below steps

  1. Go to your phone's settings.
  2. Click on About Phone.
  3. In the long list, you will see an option titled "IP address".
  4. There you will see the IP address printed. Something like 192.168..
  5. Copy this IP address to your clipboard.

Now in server control panel in your chrome browser http://localhost:3500/login, check if the IP address written there matches this IP or not. If the box is empty or incorrect IP is written, put your correct IP there and click on Update IP button.

NOTE: You have to update your IP everytime you change your network.

Generate playlist

Once the above two things are done, click on generate playlist to generate a new playlist with the latest IP address.

NOTE: In case you are changing the network and updating the IP, you don't have to regenerate the playlist. just copy url or download playlist and use.

Download latest playlist

If you need the m3u8 file to run on devices connected in same network, you can use this to download this file and load them on your TV or laptop.

Playlist link

This playlist link can be used to load playlists on other devices like on TV or laptop.

Things to take care of

In order to make things work smoothly, you have to take care of the following things:

  1. Your phone and your TV must be connected to same wi-fi.
  2. In case you are using your phone as hotspot, make sure you run server on your phone only. Or other phone which is using your hotspot.
  3. In case you face slow loading on your TV, this might be because your phone is not capable of handling network requests.
  4. If you change your network, please perform the following steps:
    1. See your IP in phone's settings.
    2. Update it on server control panel.
    3. get new playlist.
    4. Load the playlist again on your TV/Laptop/Mobile.

Issues faced during testing

Issue: Installation is not happening.

Solution: Make sure you have copied the second command properly.

Issue: Getting ERR_TLS_CERT_ALTNAME_INVALID.

Solution: This issue is fixed

Issue: Taking too long to load channel

Solution: This issue is fixed

Issue: Token expire error

Solution: This issue is fixed

For any other issues faced, make sure you join our discord server: https://discord.gg/suyzkCQKhC

Our telegram group is closed and is no more available. Please join discord for all latest official communications

Thanks for using this. Stay tuned with all the updates in our discord server.

Let's get started (Linux w/ Docker)

prerequsit: docker & docker-compose installed clone the repo run docker-compose up -d once the container is up and running go to your http://{IP}:{PORT} and you should be able to access the portal