Error code 10060 and 10038

i can’t connect to my server but my friends can but the server is at my house i have to type the whole server ip on direct connect instead of just connecting through the game menu and i don’t know why this is happening when i try to use the 127.0.0.1 ip i get the 10038 error code and if i try connecting to the gmae trough the menu i get the error code 10060

Completely disable all antiviruses and firewalls. Windows is a harmful thing.