The main task of the firewall is to manage incoming and outgoing network traffic! The firewall is designed to work on the basis of IP or PORT.
So, 100% you can block the connection on one computer. (I assume that you are using class A IP address [ 127.xyx ], which is mainly used for loop checking and interprocess communication on the local computer).
Some firewalls are preconfigured so as not to block the LAN connection, while others are configured to block them. But in any case, the firewall can be configured to enable / disable such a connection.
source share