Page 1 of 1

use Macast to push your videos audios and pics on your phone to your puppys by DLAN

Posted: Fri Sep 10, 2021 2:06 pm
by helloworld

Open source app Macast (https://github.com/xfangfang/Macast)can be used to push your videos audios and pics on your phone to your puppys by DLAN,like push to your android TV.
Just download and run it ,for linux ,it has two releases :a deb and a single binary file(recommend to download the single binary file,and make it executable).
If you fail to run it as spot by run-as-spot,try `su -l spot` in a terminal ,and `export PYSTRAY_BACKEND='xorg' && export DISPLAY=':0'`,if necessary ,`xhost +a` as root needs to be excuted,then run it.
If you firewall is working , add rules to open port 1068,Here is the iptalbles rule-adding command:
with the puppy's firewall setup app:click the 'Extra' button ,input 1068,TCP,UDP,192.168.0.0/16 (if your LAN network is 192.168.1.X,change it to192.168.1.0/16 ).Or,just do it directly by iptables,
iptables -I tcp_inbound 1 -p tcp --dport 1068 -s 192.168.0.0/16 -j ACCEPT
iptables -I udp_inbound 1 -p udp --dport 1068 -s 192.168.0.0/16 -j ACCEPT
all the above rules just only allow you lan ips to access your puppys.
Now ,pick a phone app which supports pushing files by DLAN ,see if everything works.