【问题标题】:What would be the "lo" interface equivalent on windowsWindows 上等效的“lo”接口是什么
【发布时间】:2014-03-11 14:36:30
【问题描述】:

在 Windows 平台上编程时,“lo”接口等效项是什么。

例如,当我想使用以下行时:

NetworkInterface interf = NetworkInterface.getByName("lo");

NetworkInterface interf = NetworkInterface.getByName("eth1");

windows 上的等价物是什么

【问题讨论】:

    标签: java windows unix network-programming network-interface


    【解决方案1】:

    我会使用loopbacklocalhost,但答案很大程度上取决于上下文。我建议这些名称的原因是因为它们分别出现在 C:\Windows\System32\drivers\etc\networksC:\Windows\System32\drivers\etc\hosts 中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-11
      • 1970-01-01
      • 2012-12-27
      • 2011-12-02
      • 2011-02-10
      • 2016-05-14
      • 2010-09-09
      • 1970-01-01
      相关资源
      最近更新 更多