This question already has an answer here:
I run a ssh server on an Android phone using SimpleSSHD.
When the phone is connected to a wifi network, I can connect to the SSH server from a computer in the same wifi network.
When the phone is connected to a carrier's wireless mobile network, I found an IP address on the android phone in "Settings-> About Phone -> Status". How can I find out if the IP address is a public IP address for the phone's network interface, or shared by many devices in the same LAN? Can any computer connected to the Internet connect to the SSH server using the phone's IP address? It seems that I can't, and I was wondering why?
$ ssh -p 2222 11.22.333.444 ssh: connect to host 11.22.333.444 port 2222: Connection timed out