【问题标题】:Some odd TCP connections related to firefox一些与 firefox 相关的奇怪 TCP 连接
【发布时间】:2015-06-17 09:34:49
【问题描述】:

我在 CMD 中运行 netstat -o,发现 Firefox 在我的 PC 中有一些奇怪的 TCP 连接!

127.0.0.1(localhost) 和 Jessica-PC(my computer name) 之间有两个连接,我认为它们是相等的! (127.0.0.1 = 杰西卡-PC)

我测试了netstat -a,大部分Foreign Address 都是“Jessica-PC”! 这种连接有什么用?

为什么 firefox 需要这样的 TCP 连接?

【问题讨论】:

    标签: tcp connection ip port netstat


    【解决方案1】:

    我在开发 Web 代理时也偶然发现了这类连接,答案令人惊讶。有一些外部网站尝试与本地主机上的 Web 服务器进行通信,以便与某些本地应用程序进行交互。一个典型的例子是 Spotify(但还有其他的),它甚至以某种方式设置了 DNS,以便 whatever.spotilocal.com 解析为 127.0.0.1,请参阅 What is the advantage of having a domain name (spotilocal) that resolves to 127.0.0.1? 了解更多信息。

    当然,如果涉及代理,这将不起作用,因为这意味着连接到代理上的本地主机,代理通常出于安全原因拒绝。这种设置甚至可能存在安全风险,因为其他应用程序可能会在 localhost 上运行服务器,尤其是 Mac 和大多数 Linux 系统上 localhost:631 上的打印服务器 CUPS。有关这个长期已知问题的详细信息,请参阅this article from Tavis Ormandy from 2008

    【讨论】:

      猜你喜欢
      • 2015-03-26
      • 2021-05-22
      • 2012-07-15
      • 1970-01-01
      • 2017-11-04
      • 2018-09-04
      • 2015-01-11
      • 2021-03-17
      • 2023-04-02
      相关资源
      最近更新 更多