When on the same network it works fine with either the global or local IP address being used.
I am forwarding port 22 like this:
IP Address Start Port End Port IP Address Start Port End Port Prot
localip 22 22 globalip 22 22 BOTH
I made sure port 22 was open like this on the server: sudo ufw allow 22/tcp
How do I fix this?