防火墙会阻止进程之间的本地TCP通信吗?

问题描述:

我将一个应用程序拆分为一个托盘应用程序和一个Windows服务,我想使用TCP在两者之间进行通信*.它们都将在同一台计算机上运行.

I am splitting an application into a tray application and a Windows Service and I want to use TCP to communicate between the two*. They will both be running on the same machine.

我的问题是防火墙是否阻止同一台计算机上运行的应用程序之间的TCP通信?我想知道在测试时是否需要担心防火墙.

My question is do firewalls block TCP communication between applications running on the same machine? I want to know whether firewalls are something I need to worry about when testing.

(*请注意,我想使用TCP而不是命名管道进行通信,因为这些应用可能有一天可能在不同的计算机上运行,​​但将来会很遥远)

(*note that I want to use TCP instead of named pipes for communication because the apps might one day run on separate computers but that will be far in the future)

防火墙的主要目的是控制传入和传出的网络流量!防火墙被设计为在IP或PORT的基础上工作.

The primary objective of the firewall is to control the incoming and the outgoing network traffic! Firewall's are designed to work on IP or PORT basis.

是的,它100%能够阻止同一台计算机上的连接.(我想您正在使用A类IP [127.x.y.x]地址,该地址主要用于本地计算机上的环回测试和进程间通信).

So yes, it is 100% capable of blocking connection on same machine.(I guess you are using Class A IP [127.x.y.x] address used mainly for loopback testing and interprocess communication on the local computer).

某些防火墙已预先配置为不阻止本地计算机连接,而其他防火墙已配置为阻止它们.但是无论哪种方式,都可以将防火墙配置为允许/拒绝这种连接.

Some firewall are preconfigured not to block local machine connection while other are configured to block them. But either way a firewall can be configured to allow/deny such connection.