I think the problem is that you are no longer inside your lab's network. When you first tried it you were probably in the lab and you were in fact
using the same network. Meaning: your RPi and your computer were on the same local network. Both had IPs given to them from the same DHCP and they looked something like this: 192.X.Y.Z
Now, when you are home, your local network has changed. Your Router at home will also give you a similar IP (maybe even the same one), but that doesn't mean you are both still on the same network. Every network address starting with
10.0.X.Y is reserved for local network services. That means every local network - your neighbours / mine / your labs / etc. uses these IPs internally.
However, externally, your network at home usually will only have one external IP. You can get this by looking at your router config or just visiting
Therefore, when you try to connect to your RPi from home, you won't be able to reach that Pi starting with 192.X.Y.Z, because it is actually outside of your home network. Instead you need to know the external IP and of the Pi and setup port-forwarding through the network router in your lab.
This (port-forwarding) may or may not be possible depending on the firewall configuration and admin situation of your lab. You can ask them and generally, SSH access should be allowed, but that's an individual policy.
Maybe you also actually don't have to setup anything and just find out the external IP. In our lab for example any device has an individual external IP and SSH is allowed for all of them - if this is the case - you are good to go and can just type: