Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Tutorial Collection for Xtream Codes Panel Commands

heaveframe

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
80
Reaction score
269
Points
64
Location
ONLINE
API Start/Stop Streams/vods / View Online/Offline Streams

PHP:
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

    PHP:
    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
    PHP:
    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
    PHP:
    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
  • PHP:
    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
    PHP:
    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
    PHP:
    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
PHP:
ex: curl "http://127.0.0.1:80/api.php?action=vod=stop&stream_ids[]=555


I'm getting
PHP:
{"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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

steloo71

Extended Member
Ext. Member
Joined
Sep 22, 2019
Messages
119
Reaction score
429
Points
74
Location
Uk
API Start/Stop Streams/vods / View Online/Offline Streams

PHP:
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

    PHP:
    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
    PHP:
    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
    PHP:
    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
  • PHP:
    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
    PHP:
    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
    PHP:
    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
PHP:
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 ?
 

babis20

Extended Member
Ext. Member
Joined
Sep 29, 2019
Messages
29
Reaction score
57
Points
24
Location
UK
Fast Reload

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

Reload EPG

PHP:
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
 

ibo3014

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
28
Reaction score
31
Points
24
Location
koeln
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

goochi

Extended Member
Ext. Member
Joined
Sep 24, 2019
Messages
56
Reaction score
197
Points
44
Location
USA
PHP:
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

mojbuk

Extended Member
Ext. Member
Joined
Sep 22, 2019
Messages
55
Reaction score
325
Points
64
Location
BiH
- 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.
 

moh6000

Extended Member
Ext. Member
Joined
Sep 23, 2019
Messages
31
Reaction score
78
Points
29
Location
108506
Fast Reload

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

Reload EPG

PHP:
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

Nixnix

Extended Member
Ext. Member
Joined
Oct 8, 2019
Messages
7
Reaction score
38
Points
24
Location
Holland
Delete Xtream codes from server


PHP:
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/
 
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

redhat

Administrator
Staff member
Administrator
Chief Moderator
Moderator
Joined
Jun 19, 2019
Messages
3,066
Reaction score
14,798
Points
134
Location
root[@]woi
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;

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

In this example the Password of the user admin will be changed to NewPassword
 

goochi

Extended Member
Ext. Member
Joined
Sep 24, 2019
Messages
56
Reaction score
197
Points
44
Location
USA
do anyone know the api to flush iptables banned ips v2
 
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock