Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Tutorial Collection for Xtream Codes Panel Commands

API Start/Stop Streams/vods / View Online/Offline Streams

Code:
apt install curl -y

  • View Server List
    Perform this request, to view all your servers, main & load balancers including their status

    http://your_dns:port/api.php?action=server&sub=list

    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=server&sub=list"
  • View Online Streams
    Perform this request, to view only the online Live Streams

    http://your_dns:port/api.php?action=stream&sub=online
    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=stream&sub=online"
  • View Offline Streams
    Perform this request, to view only the Offline Live Streams

    http://your_dns:port/api.php?action=server&sub=offline
    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=server&sub=offline"
  • Start/Restart A Stream
    Perform this request, to start or restart a Live Stream. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=stream&sub=start&stream_ids[]=1
  • Code:
    ex: curl "http://127.0.0.1:80/api.php?action=stream&sub=start&stream_ids[]=51"
  • Stop A Stream
    Perform this request, to stop a Live Stream. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=stream&sub=stop&stream_ids[]=1
    Code:
    ex: curl "http://127.0.0.1:80/pi.php?action=stream&sub=stop&stream_ids[]=557"
  • Start VOD Encoding (Applies for series episodes as well )
  • Perform this request, to start a VOD Encoding process. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=vod&sub=start&stream_ids[]=1
    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=vod&sub=start&stream_ids[]=554"
  • Stop A VOD Encoding
    Perform this request, to stop a VOD Encoding. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=vod=stop&stream_ids[]=1
Code:
ex: curl "http://127.0.0.1:80/api.php?action=vod=stop&stream_ids[]=555


I'm getting
Code:
{"result":false,"0":"IP FORBIDDEN"}r
how to allow the ip?
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
API Start/Stop Streams/vods / View Online/Offline Streams

Code:
apt install curl -y

  • View Server List
    Perform this request, to view all your servers, main & load balancers including their status

    http://your_dns:port/api.php?action=server&sub=list

    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=server&sub=list"
  • View Online Streams
    Perform this request, to view only the online Live Streams

    http://your_dns:port/api.php?action=stream&sub=online
    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=stream&sub=online"
  • View Offline Streams
    Perform this request, to view only the Offline Live Streams

    http://your_dns:port/api.php?action=server&sub=offline
    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=server&sub=offline"
  • Start/Restart A Stream
    Perform this request, to start or restart a Live Stream. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=stream&sub=start&stream_ids[]=1
  • Code:
    ex: curl "http://127.0.0.1:80/api.php?action=stream&sub=start&stream_ids[]=51"
  • Stop A Stream
    Perform this request, to stop a Live Stream. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=stream&sub=stop&stream_ids[]=1
    Code:
    ex: curl "http://127.0.0.1:80/pi.php?action=stream&sub=stop&stream_ids[]=557"
  • Start VOD Encoding (Applies for series episodes as well )
  • Perform this request, to start a VOD Encoding process. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=vod&sub=start&stream_ids[]=1
    Code:
    ex: curl "http://127.0.0.1:80/api.php?action=vod&sub=start&stream_ids[]=554"
  • Stop A VOD Encoding
    Perform this request, to stop a VOD Encoding. The last argument is an array in which you can specify the stream ids. It works with POST method as well.

    http://your_dns:port/api.php?action=vod=stop&stream_ids[]=1
Code:
ex: curl "http://127.0.0.1:80/api.php?action=vod=stop&stream_ids[]=555

Hi try to do the vod one


root@iptv:~# ex: curl "http://127.0.0.1:80/api.php?action=vod=stop&stream_ids[]=9006

>
i get no return is this right ?
 
Fast Reload

Code:
/home/xtreamcodes/iptv_xtream_codes/start_services.sh

Reload EPG

Code:
sudo -H -u xtreamcodes bash -c '/home/xtreamcodes/iptv_xtream_codes/php/bin/php /home/xtreamcodes/iptv_xtream_codes/crons/epg.php'


I dont have start_services.sh file in /home/xtreamcodes/iptv_xtream_codes
using version 1.6
 
Input/Output bandwidth

In order to make the Input/Output bandwidth flow working you need to run the
command

chown -R xtreamcodes:xtreamcodes /sys/

from SSH to your Main Server. Then go to Dashboard and check if the flow is not working.
If still doesn't work then you have to go to

Manage Servers -> Server -> Edit (icon) -> Network Interface

Select the interface that the panel is running from.
If you are not sure which one is your interface, you can try one-by-one all the interfaces listed there until you get a value > 0 in the DashBoard

Otherwise
you may issue the command "ifconfig" to list all the available network interfaces from your server and see from there which one is the valid
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Code:
pkill -9 mysql

/etc/init.d/mysql restart
restart sql
never kill mysql ... u will get your database corrupted and will have a a hard time fixing it

service mysql stop
service mysql start
service mysql restart
-------------------------------------
/etc/init.d/mysql stop
/etc/init.d/mysql start
/etc/init.d/mysql restart
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
- How add user or MAG device with SQL?
- How add stream
- I need php script with basic functions: add user/mag, edit, add stream, restart stream, show stream status etc...
Thank you.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Fast Reload

Code:
/home/xtreamcodes/iptv_xtream_codes/start_services.sh

Reload EPG

Code:
sudo -H -u xtreamcodes bash -c '/home/xtreamcodes/iptv_xtream_codes/php/bin/php /home/xtreamcodes/iptv_xtream_codes/crons/epg.php'
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
in load balance this commande not work i have error
{"main_fetch":false,"error":"MySQL: Access denied for user 'xtreamcodes'@'ns31035080.ip-51-68-38.eu' (using password: YES)"}yroot@ns31035080:~# y
y: command not found
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Delete Xtream codes from server


Code:
sudo pkill -9 nginx
sudo pkill -9 php
sudo pkill -9 php && /home/xtreamcodes/iptv_xtream_codes/php/sbin/php-fpm
sudo pgrep -u xtreamcodes
rm -rf /usr/bin/ffprobe
rm -rf /usr/bin/ffmpeg
crontab -u xtreamcodes -e
crontab -r -u xtreamcodes
killall -KILL -u xtreamcodes
userdel -r -f xtreamcodes
rm -rf /home/xtreamcodes/
 
Mysql sql command to change a user password

Login as root from the shell:
SQL:
$ mysql -u root -p

Enter your mySQL Root Password

Switch to mysql database (type command at mysql> prompt, do not include string “mysql>”):
SQL:
mysql> use xtream_iptvpro;

Code:
UPDATE `users` SET `password` = 'NewPassword' WHERE `users`.`username` = 'admin'

In this example the Password of the user admin will be changed to NewPassword
 
do anyone know the api to flush iptables banned ips v2
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
i know how to flush iptables
im asking about the command xc use to flush coz when your main server ban an ip it get banned on all loads also
so im sure there is api that send to all load server to ban or unban or do a flush all
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top