I tried to log in to my aws ec2 instance with putty. Every time I connect to my school wifi it keeps saying connection Time Out. But when I try to connect with my phone network it's working fine again.

I already set the security inbound rules to everyone, only myIP. but still not working.

Here is the error... "Network error!!!Connection Time Out"