Yesterday the servers were not working so I tried adding a new rule and did Outbound>New Rule>Port>TCP>25565>Allow Connections>(All selected) and added a name. And turns out it worked without the UDP.
Today I tried connecting a server and it didn't work, so I tried the same steps as above and unfortunately it still did not work, so I tried doing UDP as well as inbound TCP/UDP as you guys said and it still did not work.
I don't know what to do! This is on Minecraft 1.7.10. Please help me