Sony Camera API and the Smart Remote Control app won't allow internet access

耗尽温柔 提交于 2019-11-29 01:53:01

Almost four years later, I had the exact same use case as you, and I finally found a workaround to have both internet and API access. It's possible by making a "smart router" with at least 3 wifi cards/keys : a Raspberry Pi is a good fit.

  • First card acts as an access point (AP) to the smart router : wlan0 (main application will connect to it instead of the camera).
  • Second one connects to a wifi to get internet : wlan1
  • Third one connects to the camera AP : wlan2

Then you configure iptables to let wlan0 connections go to wlan1 and wlan2.

iptables -A POSTROUTING -t nat -o wlan1 -j MASQUERADE
iptables -A POSTROUTING -t nat -o wlan2 -j MASQUERADE

The camera discovery URL is still tricky to expose by the router but it's a fixed URL usually, so you can hardcode it once you found it (http://192.168.122.1:8080 for me). You can find it on the raspberry using this Python wrapper :

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!