I am working on a system that consists of several applicaitons communicating with each other. Some of these applications will run on the same server and some will run on a different one. So there is going to be communication from one server to another one and from one server to itself.
The communication will be TLS protected which of course takes time. In order to make the system more efficient I could only TLS-protect the communications that are not on the same server. Of course this is only safe if the non-protected content never leaves the server it comes from and also goes to.
Let's say One server has the IP 1.2.3.4 and wants to send an IP packet to 1.2.3.4 (itself). Will this IP packet ever leave the server so that it would need to be protected or will it never leave the NIC of the server?