antimof / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.28k stars 178 forks source link

firewall fixes; also people should know that uxplay features have been merged back to RPiPlay (also on github) #29

Open fduncanh opened 3 years ago

fduncanh commented 3 years ago

So RPiPlay is where active development continues. It compiles for all linux platforms, (+ maybe macos) You can now run RPiPLay instead of UxPlay on a non-raspberry-pi machine.

-----------------------also---------------------------------------------------------------------------------- In the Pull requests for RPiPlay there is a simple change #196 opened by Waester to use the apple standard ports (see Pull request "Use static ports" at github FD-/RPiPlay) udp 6000, 6001, 7011; tcp: 7000, 7100 so it works through a firewall with those ports open.

to fix the uxplay code to use these ports: edit UxPlay/uxplay.cpp line 250: replace "unsigned short port = 0;" by "unsigned short port = 7000;"

edit UxPlay/lib/raop_ntp.c line 192: replace "unsigned short tport = 0;" by "unsigned short tport = 7011;"

edit UxPlay/lib/raop_rtp.c line 231: replace "unsigned short cport = 0, dport = 0;" by "unsigned short cport = 6001, dport = 6000;"

edit UxPlay/lib/raop_rtp_mirror.c line 489: replace "unsigned short dport = 0" by "unsigned short dport = 7100;"

(i.e., just replace 0 by 7000, 7011, 6001, 6000, and 7100 in these files)

Then open firewall ports 6000, 6001, 7011 as udp, and ports 7000, 7100 as tcp UxPlay will then work with a firewall running.