Reputation: 5037
I think I'll use sockets on 127.0.0.1 to make simple IPC for my application. I'm targeting Windows, Mac and Linux. I have few questions:
Upvotes: 1
Views: 697
Reputation: 46050
The firewall indeed can block 127.0.0.1 and some firewalls do this by default. At least on Windows and Linux you can use memory-mapped files (I believe you can do this on Mac as well as it's BSD-based) for data transfer and this would normally be faster than sockets due to less data buffer copying.
Upvotes: 1
Reputation: 29615
127.0.0.1 (localhost) is the loopback interface. It's all internal, it doesn't hit the wire.
Can firewall block it? Not an external firewall, but perhaps a software firewall running on the same machine could.
Is it fast? As fast as it can be.
Can the connection be sniffed? Not by an external device, but it could be sniffed by software running on the same machine.
Upvotes: 1