I have an unlimited plan for mobile data and an android device with root enabled, used as hotspot. I'm able to connect ip camera in the local net, but I'm trouble to configure it for an external access. I read about the possibility to do it with rooted devices by using
iptables for port forwarding, but I haven't been successful for now. I'm asking here to know if someone has been able to configure it.
A doubt to be clarified is if I have to configure
iptables for device's local ip address, or for public ip with camera port, but in this last case I have to use a DDNS... Thank you to provide me the correct configuration to achieve the external access.
I used the following commands to open the http_port for now, but without success:
# iptables -A INPUT -p tcp --dport <http_port> -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT # sysctl net.ipv4.ip_forward=1 # iptables -t nat -I PREROUTING -p tcp --dport <http_port> -j DNAT --to <local_camera_ip> # iptables -I FORWARD -p tcp -d <local_camera_ip> --dport <http_port> -j ACCEPT