This question seems to come up a lot, but none of the answers seem to work for me. I'm trying to connect to my RPi over the internet, but when I try to connect over the internet (with putty) using a dynamic dns it get a
Network error: Connection timed out.
I've done the following steps:
I assigned a static IP to my RPi. I tested this with a reboot of both my router and my pi and checked with
ifconfigeach time. I can SSH through my LAN just fine so the issue is definitely not here.
I created a hostname on no-ip and setup a script to update the hostname when it changes. The hostname's IP corresponds with my router's IP. I'm not sure if the auto-update works but that's another issue.
I setup a port forward from my router (source port 22322) to my RPi's static IP (destination port 22). I used http://canyouseeme.org/ to confirm if the port's open and it says it's successfull.
I added a rule to iptables to allow the traffic,
iptables -Lreturns the following:
root@foxypi:/home/pi# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
/etc/sysctl.confI uncommented the line
From what I've read this should allow me to SSH into my RPi, but it just won't work and I'm stumped. Did I miss a crucial step?