samtap / fang-hacks

Collection of modifications for the XiaoFang WiFi Camera
1.67k stars 340 forks source link

Change rtsp port #382

Open robyevolution opened 6 years ago

robyevolution commented 6 years ago

hi I have 2 xiaofang with the hack installed, I wanted to know if it was possible to change the rtsp port so you could use them both from the external network.

pattyland commented 6 years ago

You should take a look at your port forwarding config in your router, you don't need to use the internal ports for port forwarding. I would not recommend to expose the stream directly to Internet anyway!

davidjb commented 5 years ago

@robyevolution What @pattyland says is absolutely right about port forwarding and avoiding streaming to the Internet. If you have to, you can adjust the /media/mmcblk0p2/data/etc/scripts/20-rtsp-server script's call to snx_rtsp_server to change the port. Run snx_rtsp_server --help to see all the options but the one you'd use is -P 1234 to change the port from 554 to 1234.